Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

link to prev/next photos in the default theme

  • Loading branch information...
commit 6d66f7c2c03fe7d1389814c4b2314c4e2cf7547c 1 parent c4bb1d7
@timriley authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 config/template.html
View
12 config/template.html
@@ -7,11 +7,15 @@
<body>
<h1>{{ photo.title }}</h1>
<img src='{{ photo.medium_source_url }}' alt='{{ photo.title }}'/>
- {% if photo.previous %}
- <a href='/photos/{{ photo.previous.id }}'>previous</a>
- {% endif %}
{% if photo.next %}
- <p>there is a next photo</p>
+ <p>
+ <a href='/photos/{{ photo.next.id }}'>next</a>
+ </p>
+ {% endif %}
+ {% if photo.previous %}
+ <p>
+ <a href='/photos/{{ photo.previous.id }}'>previous</a>
+ </p>
{% endif %}
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.