summaryrefslogtreecommitdiff
path: root/design/templates/details/sighting.html
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/details/sighting.html')
-rw-r--r--design/templates/details/sighting.html10
1 files changed, 1 insertions, 9 deletions
diff --git a/design/templates/details/sighting.html b/design/templates/details/sighting.html
index de76175..23a0879 100644
--- a/design/templates/details/sighting.html
+++ b/design/templates/details/sighting.html
@@ -17,15 +17,7 @@
<h1>{{object.common_name}}</h1>
<h2 class="sci">{{object.scientific_name}}</h2>
<h3 class="sci">Family {{object.apclass.scientific_name}} ({{object.apclass}})</h3>
-{% load get_image_by_size %}
-{% load get_image_width %}
-<div class="post--image">
-<figure>
-<img class="picfull" sizes="(max-width: 680px) 100vw, (min-width: 681) 680px" srcset="{% for size in sighting.image.sizes.all%}{% get_image_by_size sighting.image size.name %} {{size.width}}w{% if forloop.last%}"{%else%}, {%endif%}{%endfor%}
- {% for size in sighting.image.sizes.all%}{%if forloop.first %} src="{% get_image_by_size sighting.image size.name %}"{%endif%}{%endfor%} alt="{{sighting.image.alt}} photographed by {% if sighting.image.photo_credit_source %}{{sighting.image.photo_credit_source}}{%else%}luxagraf{%endif%}" >
-{% if sighting.image.photo_credit_source %}<figcaption>photo by <a href="{{sighting.image.photo_credit_url}}">{{sighting.image.photo_credit_source}}</a></figcaption>{%endif%}
-</figure>
-</div>
+{{object.body_html}}
{%if recording %}
<div class="audio-figure">
<audio autoplay="autoplay" controls="controls">