diff options
author | luxagraf <sng@luxagraf.net> | 2016-03-09 08:45:54 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-03-09 08:45:54 -0500 |
commit | cfa3b7f8960b6e1969f79852c6331509e9909aa3 (patch) | |
tree | 5cccf751dbc386076b1eb9b838e6801450efd058 /design/templates/details | |
parent | 1295b8b9e9fb2d1240d4f39a4a9eda29f5721579 (diff) |
Added the scientific names to birds page and styled them. Also added map
with sighting location
Diffstat (limited to 'design/templates/details')
-rw-r--r-- | design/templates/details/bird.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/design/templates/details/bird.html b/design/templates/details/bird.html index 9676683..070a921 100644 --- a/design/templates/details/bird.html +++ b/design/templates/details/bird.html @@ -9,11 +9,15 @@ <main> <article> <h1>{{object.common_name}}</h1> +<h2 class="sci">{{object.scientific_name}}</h2> +<h3 class="sci">Class {{object.bird_class.scientific_name}} ({{object.bird_class}})</h3> <p id="endnode">Seen by {% for person in sighting.seen_by.all %}<a href="/birds/{{person}}/">{{person}}</a>{%if forloop.last %}{%else%}{% if forloop.revcounter == 2 %}, and {%else%}, {%endif%}{%endif%}{%endfor%}</p> - +{% if recording.audio %} <audio autoplay="autoplay" controls="controls"> <source src="/media/{{recording.audio}}" /> </audio> +<small>Audio recorded by {{recording.recorder}} on {{recording.pub_date|date:"F j, Y"}} in {{recording.location}}. <a href="{{recording.link}}">© {{recording.copyright}}</a></small> +{%endif%} </article> </main> {% endblock %} |