Skip to content

Commit

Permalink
feat: Template changes to display normalized filename after <br />
Browse files Browse the repository at this point in the history
  • Loading branch information
miggol committed Jan 7, 2025
1 parent 14e2783 commit 72b751f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions attachments/templates/attachments/attachment_model.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

<a href="{% url "proposals:download_attachment_original" proposal_pk=proposal.pk attachment_pk=attachment.pk %}">
{{ attachment.upload.original_filename }}</a>
{% if include_normalized %}
<span class="ms-2o"> (<a href="{% url "proposals:download_attachment" proposal_pk=proposal.pk attachment_pk=attachment.pk %}">{{ attachment.upload }}</a>)</span>
{% endif %}
{% if normalized_filename %}
<span class="ms-2o"><br /><a href="{% url "proposals:download_attachment" proposal_pk=proposal.pk attachment_pk=attachment.pk %}">{{ normalized_filename }}</a></span>{% endif %}
2 changes: 1 addition & 1 deletion reviews/templates/reviews/review_attachments.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h6>{{ slot.kind.name }}</h6>
</tr>
<tr>
<td>{% trans "Bestand" %}</td>
<td>{% include slot.attachment with proposal=proposal include_normalized=True %}</td>
<td>{% include slot.attachment with proposal=proposal normalized_filename=slot.get_fetc_filename %}</td>
</tr>
<tr>
<td>{% trans "Commentaar" %}</td>
Expand Down

0 comments on commit 72b751f

Please sign in to comment.