diff options
author | lxf <sng@luxagraf.net> | 2020-12-21 10:26:22 -0500 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2020-12-21 10:26:22 -0500 |
commit | d01b0b99b417d2c3ed0d218e2d7b23e2595f18d0 (patch) | |
tree | bb20a607ff7ae14a2636644c2ffeda38207981b5 /app/lttr/templates | |
parent | a0c15b93aecb8e9b0ccb6223817c22be6d53d730 (diff) |
fixed a template bug
Diffstat (limited to 'app/lttr/templates')
-rw-r--r-- | app/lttr/templates/lttr/friends_detail.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lttr/templates/lttr/friends_detail.html b/app/lttr/templates/lttr/friends_detail.html index 087c4a4..52a2a2a 100644 --- a/app/lttr/templates/lttr/friends_detail.html +++ b/app/lttr/templates/lttr/friends_detail.html @@ -136,13 +136,13 @@ <div class="nav-wrapper"> <nav id="page-navigation" class="page-nav-photo{%if wildlife or object.field_notes.all or object.books.all %}{%else%} page-border-top"{%endif%}> <h4>Next / Previous</h4> - <ul> + <ul>{% if next %} <li id="next"> <a href="{{ next.get_absolute_url }}" rel="next" title=" {{next.title}}"> - <img class="prev-next-img" src="{% get_image_by_size next.featured_image "navigation_thumb"%}" alt="{{next.featured_image.alt}}" /> + <img class="prev-next-img" src="{%get_image_by_size next.featured_image "navigation_thumb"%}" alt="{{next.featured_image.alt}}" /> <div class="nav-title">{{next.get_issue_str}} – {{next.title|safe}}</div> </a> - </li>{% if prev%} + </li>{%endif%}{% if prev%} <li id="prev"> <a href="{{ prev.get_absolute_url }}" rel="prev" title=" {{prev.title}}"> <img src="{%get_image_by_size prev.featured_image "navigation_thumb"%}" /> |