added prefetch rels to prev/next links in photo show. fixed shadow bug in header

This commit is contained in:
danielvincent 2010-10-16 02:06:46 -07:00
parent 2735cb026d
commit 5ca3570667
3 changed files with 6 additions and 5 deletions

View file

@ -42,7 +42,7 @@
%ul.tools %ul.tools
%li= link_to t('.add_a_new_friend'), "#add_request_pane_#{aspect.id}", :class => 'add_request_button' %li= link_to t('.add_a_new_friend'), "#add_request_pane_#{aspect.id}", :class => 'add_request_button'
%li= link_to t('.show'), aspect_path(aspect) /%li= link_to t('.show'), aspect_path(aspect)
%li!= remove_link(aspect) %li!= remove_link(aspect)
%ul.dropzone{:id => aspect.id} %ul.dropzone{:id => aspect.id}
@ -61,4 +61,3 @@
%div{:id => "add_request_pane_#{aspect.id}"} %div{:id => "add_request_pane_#{aspect.id}"}
= render "requests/new_request", :aspect => aspect = render "requests/new_request", :aspect => aspect
#content_bottom

View file

@ -66,11 +66,11 @@
%h1 %h1
= @photo.image = @photo.image
= link_to "<< #{t('.prev')}", url_to_prev(@photo, @album) = link_to "<< #{t('.prev')}", url_to_prev(@photo, @album), :rel => 'prefetch'
| |
= link_to "#{t('.full_size')}", @photo.url = link_to "#{t('.full_size')}", @photo.url
| |
= link_to "#{t('.next')} >>", url_to_next(@photo, @album) = link_to "#{t('.next')} >>", url_to_next(@photo, @album), :rel => 'prefetch'
.right .right
-if current_user.owns? @album -if current_user.owns? @album

View file

@ -115,7 +115,6 @@ header
a a
:color #CCC :color #CCC
:text-shadow 0 1px 0 #444
&:hover &:hover
:background none :background none
@ -130,6 +129,9 @@ header
:color #fff :color #fff
ul#user_menu ul#user_menu
a
:text-shadow 0 1px 0 #444
:z-index 10 :z-index 10
:font :font
:size 14px :size 14px