Skip to content

Commit

Permalink
feat: Updates NGEE-Tropics and prevents dataset edits by users
Browse files Browse the repository at this point in the history
- Added contact information for dataset updates and questions in `doi-base.html`, `login.html`, and `index.html`.
- Included conditional display of "Edit Datasets" button for superusers and administrators in `index.html`.

Closes #444
  • Loading branch information
vchendrix committed Jan 21, 2025
1 parent 3bc76b1 commit 39a9136
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion archive_api/templates/archive_api/doi-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ <h4 class="banner" >Please contact [email protected] if you have any
<a href="https://ess.science.energy.gov/" target="_blank">BER/ESS</a>. All public NGEE-Tropics datasets can be
accessed in the new
<a href="https://data.ess-dive.lbl.gov/portals/ngeetropics" target="_blank">NGEE-Tropics Portal in ESS-DIVE</a>,
including after the NGEE-Tropics Data Archive is retired.
including after the NGEE-Tropics Data Archive is retired. Updates to NGEE-Tropics datasets should now be done
via ESS-DIVE; please contact us at <a href="mailto:[email protected]">[email protected]</a> if you need to edit an NGEE-Tropics dataset or if you have any questions about NGEE-Tropics datasets.

</div>

<div class="container">
Expand Down
5 changes: 4 additions & 1 deletion ui/templates/rest_framework/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
<a href="https://ess.science.energy.gov/" target="_blank">BER/ESS</a>. All public NGEE-Tropics datasets can be
accessed in the new
<a href="https://data.ess-dive.lbl.gov/portals/ngeetropics" target="_blank">NGEE-Tropics Portal in ESS-DIVE</a>,
including after the NGEE-Tropics Data Archive is retired.
including after the NGEE-Tropics Data Archive is retired. Updates to NGEE-Tropics datasets should
now be done via ESS-DIVE; please contact us at <a href="mailto:[email protected]">[email protected]</a>
if you need to edit an NGEE-Tropics dataset or if you have any questions about NGEE-Tropics datasets.

</div>
<body data-feedly-mini="yes">

Expand Down
6 changes: 5 additions & 1 deletion ui/templates/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
<a href="https://ess.science.energy.gov/" target="_blank">BER/ESS</a>. All public NGEE-Tropics datasets can be
accessed in the new
<a href="https://data.ess-dive.lbl.gov/portals/ngeetropics" target="_blank">NGEE-Tropics Portal in ESS-DIVE</a>,
including after the NGEE-Tropics Data Archive is retired.
including after the NGEE-Tropics Data Archive is retired. Updates to NGEE-Tropics datasets should
now be done via ESS-DIVE; please contact us at <a href="mailto:[email protected]">[email protected]</a> if you need to edit an NGEE-Tropics dataset or if you have any questions about NGEE-Tropics datasets.

</div>
<main>
<div class="logo">
Expand Down Expand Up @@ -63,7 +65,9 @@ <h3>NGEE Tropics Archive</h3>
</p>
<br>
<div class="columns small-centered small-4">
{% if user.is_superuser or user|has_group:"NGT Administrator" %}
<button class="button js-view-toggle columns small-12" data-view="edit-list">Edit Datasets</button>
{% endif %}
<button class="button js-view-toggle columns small-12" data-view="view">View Approved Datasets</button>
<a class="button columns small-12" data-view="view" href="/?view=view-sites">View Field Sites / Plots</a>
</div>
Expand Down

0 comments on commit 39a9136

Please sign in to comment.