Enhanced search results page

This commit is contained in:
Simon
2018-06-18 15:01:49 -04:00
parent 8a73142ff8
commit 83f4b8def9
5 changed files with 105 additions and 15 deletions

View File

@@ -62,10 +62,10 @@
{{ hl_name |safe }}{{ ("." if src["ext"] != "" else "") + src["ext"] }}
</a>
{# File type badge #}
{% set mime = get_mime(src["path"]) %}
{% set mime = get_mime(src["ext"]) %}
{% if mime %}
<span class="badge badge-pill {{ get_color(mime) }}">
{{ src["path"][src["path"].rfind(".") + 1:] }}
{{ src["ext"] }}
</span>
{% endif %}
{# File path #}