Add view_all link below photo thumbnails

This commit is contained in:
carolina 2013-08-07 12:53:11 +02:00 committed by mokus
parent d107e7d11d
commit a7bfc542e1

View file

@ -43,15 +43,14 @@
%h4 %h4
=t('.born') =t('.born')
= birthday_format(person.birthday) = birthday_format(person.birthday)
%li %li
- unless @photos.blank? - unless @photos.blank?
%h4 %h4
= link_to t('_photos'), person_photos_path(person) = t('_photos')
- for photo in @photos - for photo in @photos
= image_tag(photo.url(:thumb_small)) = image_tag(photo.url(:thumb_small))
%br
= link_to t('layouts.header.view_all'), person_photos_path(person)
%br %br
%br %br