summaryrefslogtreecommitdiff
path: root/design/templates/details/entry.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-01-29 13:00:52 -0600
committerluxagraf <sng@luxagraf.net>2018-01-29 13:00:52 -0600
commit8d42093452652eeeb149f8b596b43c4317a8909e (patch)
tree80ee11a6e83e416d776ce7f5b78dcad62b94c65a /design/templates/details/entry.html
parentf5e8556676cd9158fccc82934a7eb5037c52e957 (diff)
added sightings to entry template
Diffstat (limited to 'design/templates/details/entry.html')
-rw-r--r--design/templates/details/entry.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html
index df88bd4..b910338 100644
--- a/design/templates/details/entry.html
+++ b/design/templates/details/entry.html
@@ -53,12 +53,17 @@ class="{%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%if t ==
<div id="article" class="e-content entry-content post--body post--body--{% with object.template_name as t %}{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%endif%}{%endwith%}" itemprop="articleBody">
{{object.body_html|safe|smartypants|widont}}
</div>
- <!-- <aside class="wildlife">
+ <aside class="wildlife">
<h3>Fauna and Flora</h3>
- <ul>{% for obj in wildlife %}
- <li>{{obj}} </li>
+ {% regroup wildlife by ap.apclass.get_kind_display as wildlife_list %}
+ <ul>
+ {% for object_list in wildlife_list %}
+ <li class="grouper">{{object_list.grouper}}<ul>
+ {% for object in object_list.list %}
+ <li><a href="{% url 'sightings:detail' object.ap.slug %}">{{object}}</a></li>
{% endfor %}</ul>
- </aside>-->
+ {% endfor %}</ul>
+ </aside>
</article>
{% with object.get_next_published as next %}
{% with object.get_previous_published as prev %}