summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf>2021-01-30 14:34:14 -0500
committerluxagraf <sng@luxagraf>2021-01-30 14:34:14 -0500
commit1cc41aae49f4a88f4e776d1d01f04134fd27ccd2 (patch)
tree96ec5c6ca2ca930eb579db78b0babf7ea5ec68f3 /app
parent231c12bbfc69fce449f5fef948966216227481e6 (diff)
lttr: added exif data to image page
Diffstat (limited to 'app')
-rw-r--r--app/lttr/templates/lttr/range_detail.html17
1 files changed, 15 insertions, 2 deletions
diff --git a/app/lttr/templates/lttr/range_detail.html b/app/lttr/templates/lttr/range_detail.html
index bf729ad..d62f0e4 100644
--- a/app/lttr/templates/lttr/range_detail.html
+++ b/app/lttr/templates/lttr/range_detail.html
@@ -76,8 +76,11 @@
srcset="{{image.get_srcset}}"
src="{{image.get_src}}"
alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}">
- </a>{%endwith%}
- </figure>
+ </a>
+ <figcaption>
+ {{image.exif_model}} {{image.exif_lens}}
+ </figcaption>
+ </figure>{%endwith%}
<article class="h-entry hentry content" itemscope itemType="http://schema.org/BlogPosting">
<header id="header" class="post-header">
<h1 class="p-name post-title" itemprop="headline">{{object.title|smartypants|safe}}</h1>
@@ -173,3 +176,13 @@
{% endblock %}
{% block js %}{% comment %} <script async src="/media/js/hyphenate.min.js" type="text/javascript"></script>{% endcomment%}{% endblock%}
+
+
+ exif_aperture = models.CharField(max_length=50, blank=True, null=True)
+ exif_make = models.CharField(max_length=50, blank=True, null=True)
+ exif_model = models.CharField(max_length=50, blank=True, null=True)
+ exif_exposure = models.CharField(max_length=50, blank=True, null=True)
+ exif_iso = models.CharField(max_length=50, blank=True, null=True)
+ exif_focal_length = models.CharField(max_length=50, blank=True, null=True)
+ exif_lens = models.CharField(max_length=50, blank=True, null=True)
+ exif_date = models.DateTimeField(blank=True, null=True)