mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 06:49:02 +00:00
Enhanced search results page
This commit is contained in:
@@ -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 #}
|
||||
|
||||
Reference in New Issue
Block a user