Skip to content

Commit

Permalink
Restored original background colors to publication status labels on d…
Browse files Browse the repository at this point in the history
…ataset and file pgs [ref #6684]
  • Loading branch information
mheppler committed May 28, 2020
1 parent ae05dde commit 22c9732
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@
<span id="title">#{DatasetPage.datasetVersionUI.title.value}</span>
<div id="title-label-block" class="margin-top-half">
<!-- DATASET Publication Status -->
<h:outputText value="#{bundle['dataset.versionUI.draft']}" styleClass="label label-default" rendered="#{DatasetPage.workingVersion.draft}"/>
<h:outputText value="#{bundle['dataset.versionUI.inReview']}" styleClass="label label-default" rendered="#{DatasetPage.workingVersion.inReview}"/>
<h:outputText value="#{bundle['dataset.versionUI.unpublished']}" styleClass="label label-default" rendered="#{!DatasetPage.dataset.released}"/>
<h:outputText value="#{bundle['dataset.versionUI.deaccessioned']}" styleClass="label label-default" rendered="#{DatasetPage.workingVersion.deaccessioned}"/>
<h:outputText value="#{bundle['dataset.versionUI.draft']}" styleClass="label label-primary" rendered="#{DatasetPage.workingVersion.draft}"/>
<h:outputText value="#{bundle['dataset.versionUI.inReview']}" styleClass="label label-success" rendered="#{DatasetPage.workingVersion.inReview}"/>
<h:outputText value="#{bundle['dataset.versionUI.unpublished']}" styleClass="label label-warning" rendered="#{!DatasetPage.dataset.released}"/>
<h:outputText value="#{bundle['dataset.versionUI.deaccessioned']}" styleClass="label label-danger" rendered="#{DatasetPage.workingVersion.deaccessioned}"/>
<!-- DATASET VERSION NUMBER -->
<h:outputText styleClass="label label-default" rendered="#{DatasetPage.workingVersion.released and !(DatasetPage.workingVersion.draft or DatasetPage.workingVersion.inReview or DatasetPage.workingVersion.deaccessioned)}"
value="#{bundle['file.DatasetVersion']} #{DatasetPage.workingVersion.versionNumber}.#{DatasetPage.workingVersion.minorVersionNumber}"/>
Expand Down
14 changes: 7 additions & 7 deletions src/main/webapp/file.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@

<div id="title-label-block" class="margin-top-half">
<!-- Restricted File Icon -->
<span class="glyphicon glyphicon-lock text-danger" jsf:rendered="#{FilePage.fileMetadata.restricted and !(fileDownloadHelper.canDownloadFile(FilePage.fileMetadata))}" />
<span class="icon-unlock text-success" jsf:rendered="#{FilePage.fileMetadata.restricted and fileDownloadHelper.canDownloadFile(FilePage.fileMetadata) }" />
<span class="glyphicon glyphicon-lock text-danger" jsf:rendered="#{FilePage.fileMetadata.restricted and !(fileDownloadHelper.canDownloadFile(FilePage.fileMetadata))}"/>
<span class="icon-unlock text-success" jsf:rendered="#{FilePage.fileMetadata.restricted and fileDownloadHelper.canDownloadFile(FilePage.fileMetadata) }"/>
<!-- DATASET Publication Status -->
<h:outputText value="#{bundle['dataset.versionUI.draft']}" styleClass="label label-default" rendered="#{FilePage.fileMetadata.datasetVersion.draft}"/>
<h:outputText value="#{bundle['dataset.versionUI.inReview']}" styleClass="label label-default" rendered="#{FilePage.fileMetadata.datasetVersion.inReview}"/>
<h:outputText value="#{bundle['dataset.versionUI.unpublished']}" styleClass="label label-default" rendered="#{!FilePage.fileMetadata.datasetVersion.dataset.released}"/>
<h:outputText value="#{bundle['dataset.versionUI.deaccessioned']}" styleClass="label label-default" rendered="#{FilePage.fileMetadata.datasetVersion.deaccessioned}"/>
<h:outputText value="#{bundle['dataset.versionUI.draft']}" styleClass="label label-primary" rendered="#{FilePage.fileMetadata.datasetVersion.draft}"/>
<h:outputText value="#{bundle['dataset.versionUI.inReview']}" styleClass="label label-success" rendered="#{FilePage.fileMetadata.datasetVersion.inReview}"/>
<h:outputText value="#{bundle['dataset.versionUI.unpublished']}" styleClass="label label-warning" rendered="#{!FilePage.fileMetadata.datasetVersion.dataset.released}"/>
<h:outputText value="#{bundle['dataset.versionUI.deaccessioned']}" styleClass="label label-danger" rendered="#{FilePage.fileMetadata.datasetVersion.deaccessioned}"/>
<!-- DATASET VERSION NUMBER -->
<h:outputText styleClass="label label-default" rendered="#{FilePage.fileMetadata.datasetVersion.released and !(FilePage.fileMetadata.datasetVersion.draft or FilePage.fileMetadata.datasetVersion.inReview)}"
value="#{bundle['file.DatasetVersion']} #{FilePage.fileMetadata.datasetVersion.versionNumber}.#{FilePage.fileMetadata.datasetVersion.minorVersionNumber}" />
value="#{bundle['file.DatasetVersion']} #{FilePage.fileMetadata.datasetVersion.versionNumber}.#{FilePage.fileMetadata.datasetVersion.minorVersionNumber}"/>
<h:outputText styleClass="label label-default" rendered="#{!FilePage.fileMetadata.datasetVersion.released and !(FilePage.fileMetadata.datasetVersion.draft or FilePage.fileMetadata.datasetVersion.inReview)}"
value="#{bundle['file.DatasetVersion']} #{FilePage.fileMetadata.datasetVersion.versionState}"/>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/main/webapp/resources/css/structure.css
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ thead.ui-datatable-scrollable-theadclone {display:none}
}

#file-title-block span.file-title-label {font-size:36px !important;line-height:1.1;font-weight:bold;margin-right:.5em;}
#file-title-block span.label {margin-right:.5em;vertical-align: text-top;}
#file-title-block span.label {vertical-align: text-top;}
#file-title-block span.label, #file-title-block span.glyphicon-lock, #file-title-block span.icon-unlock {margin-right:.5em;}
#file-title-block span.glyphicon-lock, #file-title-block span.icon-unlock {top:1px;}
#file-title-block span.ingest-warning {vertical-align:text-bottom;font-size:30px;}
#fileCategoriesBlock span.label {margin-right: 0.5em;}

Expand Down

0 comments on commit 22c9732

Please sign in to comment.