Skip to content

Commit

Permalink
In email log entries that don't include the email content, show a mes…
Browse files Browse the repository at this point in the history
…sage explaining why instead of linking to an empty file.
  • Loading branch information
Theophile-Madet committed Nov 18, 2024
1 parent eb3d8de commit 96959f4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tapir/log/templates/log/email_log_entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
<br />
Subject : {{ entry.subject }}
<br />
<a class="{% tapir_button_link %} btn-sm"
href="{% url 'log:email_log_entry_content' entry.pk %}">
<span class="material-icons">download</span>
Download
</a>
{% if entry.email_content %}
<a class="{% tapir_button_link %} btn-sm"
href="{% url 'log:email_log_entry_content' entry.pk %}">
<span class="material-icons">download</span>
Download
</a>
{% else %}
{% translate "Email-Inhalt ist aus Sicherheitsgründen nicht verfügbar" %}
{% endif %}

0 comments on commit 96959f4

Please sign in to comment.