only show prev/next if there is more than one photo, fixes #813

This commit is contained in:
Dan Hansen 2011-01-13 01:03:37 -06:00
parent 9c87fff295
commit 43658b4923

View file

@ -7,6 +7,7 @@
.span-15.append-1.last .span-15.append-1.last
#photo_controls #photo_controls
-if @additional_photos.length > 1
.right .right
=link_to "← #{t('previous')}", @prev_photo, :rel => 'prefetch', :id => 'photo_show_left' =link_to "← #{t('previous')}", @prev_photo, :rel => 'prefetch', :id => 'photo_show_left'
\/ \/