From 48b495caaec1ecf01f3788eb0e300c65e62a3c6f Mon Sep 17 00:00:00 2001 From: j Date: Tue, 12 Dec 2017 13:42:27 +0100 Subject: [PATCH] minimal image viewer --- content/static/css/main.css | 5 ---- content/templates/detail.html | 51 +++++++++++++++++++++++++++++++++-- 2 files changed, 49 insertions(+), 7 deletions(-) diff --git a/content/static/css/main.css b/content/static/css/main.css index f039f58..d0bf67d 100644 --- a/content/static/css/main.css +++ b/content/static/css/main.css @@ -90,8 +90,3 @@ body, h1, h2, h3, h4, h5, h6 { .context ul, .links ul { list-style: none; } - -.images img { - max-width: 128px; - float: left; -} diff --git a/content/templates/detail.html b/content/templates/detail.html index 4e52db4..427f935 100644 --- a/content/templates/detail.html +++ b/content/templates/detail.html @@ -87,8 +87,45 @@ {% endif %} {% if content.images.exists %} + +Images:
- Images:
{% for res in content.images %}
{% if res.is_image %} @@ -102,8 +139,18 @@ {% endif %}
{% endfor %} -
+ {% endif %} {% endif %}