summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2022-02-16 09:59:49 -0500
committerluxagraf <sng@luxagraf.net>2022-02-16 09:59:49 -0500
commitd9dabc241827dd86d2d66437c9e517623ed62b68 (patch)
treecd6cf37df86731deda4879b0e79ca2f6d40108c2 /app
parent337a458c4d2e06ce611fff60cb592df3bb96f88e (diff)
sght: fixed bug in list template
Diffstat (limited to 'app')
-rw-r--r--app/sightings/templates/sightings/sighting_list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/sightings/templates/sightings/sighting_list.html b/app/sightings/templates/sightings/sighting_list.html
index 0264bda..f5a2df7 100644
--- a/app/sightings/templates/sightings/sighting_list.html
+++ b/app/sightings/templates/sightings/sighting_list.html
@@ -8,10 +8,10 @@
{% block primary %}
<main class="archive-grid">{% autopaginate object_list 24%}
<h1 class="hide">Plants and Animals 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="archive-grid-card">{% if object.ap.image%}
+ <article class="archive-grid-card">{% if object.ap.featured_image%}
<div class="post--image">
<a href="{{object.ap.get_absolute_url}}" title="{{object.ap}}">
- {% include "lib/img_archive.html" with image=object.ap.image %}
+ {% include "lib/img_archive.html" with image=object.ap.featured_image %}
</a>
</div>{% endif %}
<h2 class="card-hed-smit"><a href="{{object.ap.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.ap}}{%endif%}">{{object.ap|safe|smartypants|widont}} (<span class="sci">{{object.ap.scientific_name}}</span>)</a></h2>