Skip to content

Commit

Permalink
Display RAR archives as SVG in event entries
Browse files Browse the repository at this point in the history
  • Loading branch information
SeinopSys committed Sep 13, 2019
1 parent d22fac0 commit f097e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/event/_entry_preview.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<img src='{{ preview }}' alt='event entry preview'>
</a>
{% if file_type is not empty %}
{% if file_type == 'zip' %}
<span class='file-type'>svg<span class="star-info" title="ZIP archives are assumed to be SVG files">*</span></span>
{% if file_type == 'zip' or file_type == 'rar' %}
<span class='file-type'>svg<span class="star-info" title="{{ file_type | upper }} archives are assumed to be SVG files">*</span></span>
{% else %}
<span class='file-type'>{{ file_type }}</span>
{% endif %}
Expand Down

0 comments on commit f097e50

Please sign in to comment.