diff --git a/static/css/main.css b/static/css/main.css
index dbd4daf..2ff4bae 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -51,6 +51,15 @@
-o-animation: vimCaret 1s linear infinite;
animation: vimCaret 1s linear infinite; }
+.prev-img {
+ width: 100%;
+ max-width: 250px;
+ height: 100%;
+}
+
+.prev-icon {
+ cursor: pointer;
+}
@-webkit-keyframes vimCaret {
0% {
background-color: transparent; }
diff --git a/templates/search.html b/templates/search.html
index ddce976..708218d 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -57,21 +57,24 @@
+ {% set category = get_mime(src["ext"]) %}
+ {% set url = src["website_url"] + src["path"] + "/" + src["name"] + ("." if src["ext"] != "" else "") + src["ext"] %}
+ {# Preview #}
+ {% if category == "image" %}
+
+ {% endif %}
{# File name & link #}
-
- {{ hl_name |safe }}{{ ("." if src["ext"] != "" else "") + src["ext"] }}
-
+ {{ hl_name |safe }}{{ ("." if src["ext"] != "" else "") + src["ext"] }}
{# File type badge #}
- {% set mime = get_mime(src["ext"]) %}
- {% if mime %}
-
+ {% if category %}
+
{{ src["ext"] }}
{% endif %}
{# File path #}
|
{# File size & date #}
@@ -100,6 +103,16 @@
No results
{% endif %}
+
+
+
{% endblock body %}