only show prev/next if there is more than one photo, fixes #813
This commit is contained in:
parent
9c87fff295
commit
43658b4923
1 changed files with 5 additions and 4 deletions
|
|
@ -7,10 +7,11 @@
|
|||
|
||||
.span-15.append-1.last
|
||||
#photo_controls
|
||||
.right
|
||||
=link_to "← #{t('previous')}", @prev_photo, :rel => 'prefetch', :id => 'photo_show_left'
|
||||
\/
|
||||
=link_to "#{t('next')} →", @next_photo, :rel => 'prefetch', :id => 'photo_show_right'
|
||||
-if @additional_photos.length > 1
|
||||
.right
|
||||
=link_to "← #{t('previous')}", @prev_photo, :rel => 'prefetch', :id => 'photo_show_left'
|
||||
\/
|
||||
=link_to "#{t('next')} →", @next_photo, :rel => 'prefetch', :id => 'photo_show_right'
|
||||
|
||||
- if @photo.status_message_id
|
||||
=link_to "← #{t('.view_original_post')}", @photo.status_message
|
||||
|
|
|
|||
Loading…
Reference in a new issue