diff options
author | luxagraf <sng@luxagraf.net> | 2016-06-17 10:21:26 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-06-17 10:21:26 -0400 |
commit | b658d4b38f1aab3ed1bdc629300392c1b3e9e8fa (patch) | |
tree | 28eefd84cd586f23f1b1e7d96c4b58c229b7e183 /design/templates/lib | |
parent | cec274a4b7de8e07a3d7dc29127ba18f0dd42305 (diff) |
fixed notes to be like an instagram for the web also tweaked styles for
picwide captions and added support for show camera make, model and lens
Diffstat (limited to 'design/templates/lib')
-rw-r--r-- | design/templates/lib/img_picwide.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/lib/img_picwide.html b/design/templates/lib/img_picwide.html index 065ff6c..be2b779 100644 --- a/design/templates/lib/img_picwide.html +++ b/design/templates/lib/img_picwide.html @@ -1,9 +1,9 @@ {% load get_image_by_size %} -{% if caption %} +{% if caption or exif %} <figure class="picwide">{%endif%} <img class="picwide" sizes="(max-width: 1140px) 100vw, (min-width: 1141px) 1140px" srcset="{% for size in image.sizes.all%}{% get_image_by_size image size %} {{size}}w{% if forloop.last%}"{%else%}, {%endif%}{%endfor%} {% for size in image.sizes.all%}{%if not forloop.first and not forloop.last%}src="{% get_image_by_size image size %}"{%endif%}{%endfor%} alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}"> - {% if caption %}<figcaption>{{image.caption}}</figcaption> +{% if caption or exif %}<figcaption>{% endif %}{% if caption %}{{image.caption}}{% endif %}{% if exif %} | <small>Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}</small>{% endif %}{% if caption or exif %}</figcaption> </figure> {% endif %} |