diff options
author | luxagraf <sng@luxagraf.net> | 2018-03-13 11:37:13 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-03-13 11:37:13 -0500 |
commit | d40496bd4556fdc22ec047f6f1f793220ae4b071 (patch) | |
tree | 4d41c9ffee7e4c37c9425a58e3c70dd0e5ca03dc /design | |
parent | ab62d6af3ed33234f0ab849ef5d5c3b5a400f6e3 (diff) |
added body_html to sightings template
Diffstat (limited to 'design')
-rw-r--r-- | design/templates/details/sighting.html | 10 |
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"> |