diff options
Diffstat (limited to 'app/locations')
-rw-r--r-- | app/locations/templates/locations/location_detail.html | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/app/locations/templates/locations/location_detail.html b/app/locations/templates/locations/location_detail.html index 81aeb97..9622a14 100644 --- a/app/locations/templates/locations/location_detail.html +++ b/app/locations/templates/locations/location_detail.html @@ -64,29 +64,19 @@ </section>{% endif %} {% if sighting_list %} <div class="section"> - <h2 class="hedtinycaps">Birds and Mammals seen in {{object}}</h2> {% for object in sighting_list %} - <ul class="archive-list"> - <li class="archive-list-card archive-list-card-sm">{% if object.ap.image%} - <div class="circle-img-wrapper"> - <a href="{{object.ap.get_absolute_url}}" title="{{object.ap}}"> - {% include "lib/img_archive.html" with image=object.ap.image %} - </a> - </div>{% endif %} - <h3 class="card-hed"><a href="{{object.ap.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.ap}}{%endif%}">{{object.ap|safe|smartypants|widont}}</a></h3> - <p class="card-lede">{{object.ap.scientific_name}}</p> - <time class="card-smcaps" datetime="{{object.pub_date|date:'c'}}">Last Seen: {{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> - </li> - </ul> {% endfor %} + <h2 class="hedtinycaps">Birds and Mammals seen in {{object}}</h2> + <div class="archive-grid">{% for object in sighting_list %} + <article class="archive-grid-card">{% if object.ap.featured_image%} + <div class="card-image"> + <a href="{{object.ap.get_absolute_url}}" title="{{object.ap}}"> + {% include "lib/img_archive.html" with image=object.ap.featured_image %} + </a> + </div>{% endif %} + <h3 class="card-hed"><a href="{{object.ap.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.ap}}{%endif%}">{{object.ap|safe|smartypants|widont}}</a></h3> + <p class="card-lede">{{object.ap.scientific_name}}</p> + <time class="card-smcaps" datetime="{{object.pub_date|date:'c'}}">Last Seen: {{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> + </article> {% endfor %} + </div> </div>{%endif%} - - {% comment %} - {% for entry in book_list %}{% if forloop.first %} - <div id="recommended-reading" > - <h3 class="hed">Recommended Reading</h3> - <ul>{% endif %}{% for obj in entry.books.all %} - <li><a href="{% url 'books:detail' slug=obj.slug %}"><img src="{{obj.get_small_image_url}}" /></a></li>{% endfor %} - {% if forloop.last%}</ul> - </div>{%endif%}{% endfor %} - {% endcomment %} </main> {% endblock %} |