Skip to content

Commit

Permalink
Fixed msg rendering for upload pg that has a package file, plus panel…
Browse files Browse the repository at this point in the history
… default open view for rsync only. [ref #4610]
  • Loading branch information
mheppler committed Aug 2, 2018
1 parent 4bb287e commit ac232c8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/main/webapp/editFilesFragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
</ul>
<div class="ui-tabs-panels">
<div aria-hidden="false" role="tabpanel" class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="datasetForm:tabView:dataFilesTab">


<!-- Create dataset workflow info msg + user guide link -->
<div jsf:rendered="#{createDataset}">
<p class="help-block">
<h:outputFormat value="#{bundle['dataset.message.uploadFiles.message']}" escape="false">
Expand Down Expand Up @@ -242,7 +241,8 @@
</h4>
</div>

<div id="collapseRsync" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingRsync">
<!-- NOTE: conditional logic for 'in' style class opens the rsync panel if HTTP is off, but isn't scalable when a third upload mode is added -->
<div id="collapseRsync" class="panel-collapse collapse #{!settingsWrapper.HTTPUpload ? 'in' : ''}" role="tabpanel" aria-labelledby="headingRsync">
<div class="panel-body">
<ui:fragment rendered="#{createDataset}">
<p class="help-block">
Expand All @@ -256,12 +256,18 @@
<h:outputText class="text-danger" value=" #{bundle['file.rsyncUpload.filesExist']}" escape="false"/>
</p>
</ui:fragment>
<ui:fragment rendered="#{!EditDatafilesPage.isHasRsyncScript() and empty EditDatafilesPage.fileMetadatas}">
<ui:fragment rendered="#{!EditDatafilesPage.isHasRsyncScript() and (empty EditDatafilesPage.fileMetadatas and empty DatasetPage.workingVersion.hasPackageFile)}">
<p class="help-block">
<span class="glyphicon glyphicon-warning-sign text-danger"></span>
<h:outputText class="text-danger" value=" #{bundle['file.rsyncUpload.noScriptAvailable']}" escape="false"/>
</p>
</ui:fragment>
<ui:fragment rendered="#{!EditDatafilesPage.isHasRsyncScript() and (empty EditDatafilesPage.fileMetadatas and DatasetPage.workingVersion.hasPackageFile)}">
<p class="help-block">
<span class="glyphicon glyphicon-warning-sign text-danger"></span>
<h:outputText class="text-danger" value=" #{bundle['file.rsyncUpload.filesExist']}" escape="false"/>
</p>
</ui:fragment>
<ui:fragment rendered="#{EditDatafilesPage.isHasRsyncScript() and empty EditDatafilesPage.fileMetadatas}">
<p class="help-block">
<span class="glyphicon glyphicon-info-sign"></span>
Expand Down

0 comments on commit ac232c8

Please sign in to comment.