moved next/prev links in photo show to be inline with full size link.

This commit is contained in:
danielvincent 2010-08-09 20:23:01 -07:00
parent d712218a14
commit fd8d92a095
4 changed files with 5 additions and 15 deletions

View file

@ -5,7 +5,7 @@ module PhotosHelper
end
def link_to_prev(photo, album)
link_to "<< previous", photo_path(album.prev_photo(photo)), :rel => "prefetch"
link_to "<< prev", photo_path(album.prev_photo(photo)), :rel => "prefetch"
end
def link_to_next(photo, album)

View file

@ -7,21 +7,18 @@
= link_to 'Edit Photo', edit_photo_path(@photo), :class => "button"
.sub_header
= link_to_prev @photo, @album
|
= link_to "full size", @photo.image.url
|
= link_to_next @photo, @album
%div{:id => @photo.id}
#show_photo
= linked_scaled_photo @photo, @album
.caption
= @photo.caption
#next_prev_links
= link_to_prev @photo, @album
|
= link_to_next @photo, @album
#content_bottom
.back
= link_to "⇧ #{@album.name}", album_path(@album)

View file

@ -414,9 +414,6 @@ h1.big_text {
margin-bottom: 20px;
color: #999999; }
#next_prev_links {
text-align: center; }
.image_thumb {
display: inline-block;
width: 100px;

View file

@ -516,10 +516,6 @@ h1.big_text
:bottom 20px
:color #999
#next_prev_links
:text-align center
.image_thumb
:display inline-block
:width 100px