diff options
author | luxagraf <sng@luxagraf.net> | 2016-03-21 10:55:08 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-03-21 10:55:08 -0400 |
commit | dfc3e41335b71abdadec30538f0f07a8665368b3 (patch) | |
tree | 0566f66e1ebd44a2bc3717d3b27c2154d19ec1d5 /design/templates/archives | |
parent | 85ce83a3fa1a6d084035babd4c7fc49c4f1e90f7 (diff) |
fixed up bird app archive pages
Diffstat (limited to 'design/templates/archives')
-rw-r--r-- | design/templates/archives/birds.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/design/templates/archives/birds.html b/design/templates/archives/birds.html index 1a02a7c..32a7aa1 100644 --- a/design/templates/archives/birds.html +++ b/design/templates/archives/birds.html @@ -11,13 +11,13 @@ <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> → </li> {% if region %}{%if region.name == 'United States'%} <li><a href="/birds/" title="See all Journal Entries" itemprop="url"><span itemprop="title">Birds</span></a> →</li> <li itemprop="title">the United States</li>{%else%}<li><a href="/jrnl/" title="See all Journal Entries" itemprop="url"><span>Birds</span></a> →</li> - <li>{{region.name|title|smartypants|safe}}</li>{%endif%}{%else%}<li>Journal</li>{%endif%} + <li>{{region.name|title|smartypants|safe}}</li>{%endif%}{%else%}<li>Birds</li>{%endif%} </ul> <main role="main" class="archive">{% autopaginate object_list 40 %} <h1 class="hide">Birds seen {% if region %}in {%if region.name == 'United States'%}the United States{%else%}{{region.name|title|smartypants|safe}}{%endif%}{%else%} by {{user}}{%endif%}</h1> {% for object in object_list %} <article class="{% cycle 'odd' 'even' %} {% cycle 'first' 'second' 'third' %}"> <div class="post--image"> - <a href="{{object.bird.get_absolute_url}}" title="{{object.bird}}"><img src="{{object.get_image_url}}" alt="{{ object.title }}" class="post-image" /></a> + <a href="{{object.bird.get_absolute_url}}" title="{{object.bird}}"><img src="{{object.get_small_image}}" alt="{{ object.title }}" class="post-image" /></a> </div> <h3 class="post--title"><a href="{{object.bird.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.bird}}{%endif%}">{{object.bird|safe|smartypants|widont}}</a> (<span class="sci">{{object.bird.scientific_name}}</span>)</h3> <time class="post--date" datetime="{{object.date|date:'c'}}">Seen: {{object.date|date:"F"}} <span>{{object.date|date:"j, Y"}}</span></time> @@ -30,12 +30,12 @@ </span> </span> </p> - <p class="audio">{% for recording in object.bird.recordings.all %} + <div class="audio-figure">{% for recording in object.bird.recordings.all %} <audio 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> - </p>{% endfor %} + </div>{% endfor %} </article> {% endfor %} </main> <nav class="pagination"> |