Skip to content

Commit

Permalink
Display a custom registry success message for the arctic theme
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenwalker committed May 13, 2016
1 parent 6b2db00 commit 4b62d85
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions metacatui/src/main/webapp/js/themes/arctic/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var themeMap =
'templates/noResults.html' : 'themes/' + theme + '/templates/noResults.html',
'templates/loginButtons.html' : 'themes/' + theme + '/templates/loginButtons.html',
'templates/metadata.html' : 'themes/' + theme + '/templates/metadata.html',
'templates/insertProgress.html' : 'themes/' + theme + '/templates/insertProgress.html',
'models/AppModel' : 'js/themes/' + theme + '/models/AppModel.js',
'models/NodeModel' : 'js/themes/' + theme + '/models/NodeModel.js',
'models/Map' : 'js/themes/' + theme + '/models/Map.js',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<div class="container">
<% if(status == "processing"){ %>

<h1>Thank you for your submission</h1>
<p>Please wait just a moment while your data is being uploaded and processed.</p>

<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%">
<span class="sr-only">Processing...</span>
</div>
</div>

<% } else if(status == "complete"){ %>

<h1>Thank you for your submission</h1>
<h3>Your data set is now under review by the Arctic Data Center team.</h3>
<p>No further action is required at this point; we will contact you by email.</p>
<p>Once the review and any revisions are complete, we will assign a DOI, and publicly publish the data package. Until then, it will not be publicly visible.</p>

<div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
<span class="sr-only">Under review</span>
</div>
</div>

<a class="btn btn-primary btn-large center" href="#view/<%=id%>">View your data set</a>

<% } else if(status == "error"){ %>

<h1>Thank you for your submission</h1>

<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
<span class="sr-only">Error</span>
</div>
</div>

<div class="alert alert-error">Your submission could not be completed. Please <a href="#share" id="registerAnotherPackage">try again</a> or
<a href="mailto:<%=appModel.get('emailContact')%>"> contact us at <%=appModel.get("emailContact")%></a>
for assistance.</div>

<% } %>
</div>

0 comments on commit 4b62d85

Please sign in to comment.