Skip to content

Commit

Permalink
fix: mailto link for dataset uploader (#99)
Browse files Browse the repository at this point in the history
(On dataset page) Also, only show to authenticated users.
  • Loading branch information
alubbock authored Sep 10, 2024
1 parent 21010ed commit ceff23a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions thunorweb/templates/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ <h2>Admin operations</h2>
<h2 style="margin-top:5px">Metadata</h2>
{% if dataset.creator %}<p><strong>Created by</strong><br><span id="meta-creator">{{ dataset.creator }}</span></p>{% endif %}
{% if dataset.license_text %}<p><strong>Usage terms</strong><br><span id="meta-license">{{ dataset.license_text }}</span></p>{% endif %}
<p><strong>Uploaded by</strong><br><a href="mailto
:{{ dataset.owner.email }}">{{ dataset.owner.email }}</a></p>
{% if request.user.is_authenticated %}<p><strong>Uploaded by</strong><br><a href="mailto:{{ dataset.owner.email }}">{{ dataset.owner.email }}</a></p>{% endif %}
<p><strong>Uploaded date</strong><br>{{ dataset.creation_date }}</p>
<p><strong>Most recent plate file upload</strong><br>
{{ dataset.last_upload }}</p>
Expand Down

0 comments on commit ceff23a

Please sign in to comment.