Skip to content

Instantly share code, notes, and snippets.

@aurelian
Created September 8, 2008 21:40
Show Gist options
  • Save aurelian/9547 to your computer and use it in GitHub Desktop.
Save aurelian/9547 to your computer and use it in GitHub Desktop.
Index: templates/photo_view.html
===================================================================
--- templates/photo_view.html (revision 11)
+++ templates/photo_view.html (working copy)
@@ -20,7 +20,7 @@
<a href="{{ photo.get_previous_by_date.get_url }}" title="(click for previous image)">
{% endif %}
<img id="image" src="{{ photo.get_file_url }}" alt="" />
- {% if photo.get_previous_by_date.get_absolute_url %}
+ {% if photo.get_previous_by_date %}
</a>
{% endif %}
<span id='properties' style="display: none;"><table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment