Skip to content

Commit

Permalink
Merge pull request #3779 from IQSS/3760-map-data-popup-file-page
Browse files Browse the repository at this point in the history
add "Data Not Published" popup to file page on "Map Data" click #3760
  • Loading branch information
kcondon authored Apr 21, 2017
2 parents 14786e2 + f46c667 commit 64090b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/webapp/file-download-button-fragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,14 @@
<!-- 4.2.1 - TODO: retest this on a dataset with fileRequest enabled and with some files restricted to the user -->
<span class="glyphicon glyphicon-bullhorn"/> #{fileMetadata.dataFile.fileAccessRequesters.contains(dataverseSession.user) ? bundle['file.accessRequested'] : bundle['file.requestAccess']}
</p:commandLink>
<p:dialog header="#{bundle['file.mapData.unpublished.header']}" widgetVar="mapData_popup" modal="true">
<p class="help-block">
<span class="text-danger"><span class="glyphicon glyphicon-warning-sign"/> #{bundle['file.mapData.unpublished.message']}</span>
</p>
<div class="button-block">
<button type="button" class="btn btn-default" onclick="PF('mapData_popup').hide();PF('blockDatasetForm').hide();">
#{bundle.close}
</button>
</div>
</p:dialog>
</ui:composition>

0 comments on commit 64090b7

Please sign in to comment.