summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/lttr/templates/lttr/friends_detail.html6
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}} &ndash; {{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"%}" />