fixed photo show header

This commit is contained in:
Daniel Vincent Grippi 2010-09-13 22:51:51 -07:00
parent b49eaa1ceb
commit 01b14a66e8
4 changed files with 14 additions and 13 deletions

View file

@ -24,7 +24,7 @@
});
= content_for :page_title do
= link_to "Home", aspects_path
= link_to "Home", aspects_path
- content_for :left_pane do
= render "shared/aspect_friends"
@ -32,6 +32,7 @@
- content_for :publish do
%h1
Albums
.right
= link_to 'New Album', '#new_album_pane', {:class => "button", :id => "add_album_button"}
.yo{:style => "display:none;" }

View file

@ -25,7 +25,7 @@
});
= content_for :page_title do
= link_to "Albums", albums_path
= link_to "Albums", albums_path
- content_for :left_pane do
= render "shared/aspect_friends"

View file

@ -86,7 +86,7 @@
.page_title
= yield :page_title
.span-19.last
.span-19.last{ :style => "position:relative;" }
= yield :publish
.container

View file

@ -30,26 +30,26 @@
});
= content_for :page_title do
= link_to "Photo", @photo
= link_to "◂ #{@photo.album.name}", @photo.album
- content_for :left_pane do
= render "shared/aspect_friends"
%h1.big_text
- content_for :publish do
%h1
= @photo.image
.right
-if current_user.owns? @album
= link_to 'Edit Photo', edit_photo_path(@photo), :class => "button"
.sub_header
= link_to "<< prev", url_to_prev(@photo, @album)
|
= link_to "full size", @photo.url
|
= link_to "next >>", url_to_next(@photo, @album)
.right
-if current_user.owns? @album
= link_to 'Edit Photo', edit_photo_path(@photo), :class => "button"
%div{:id => @photo.id}
#show_photo
= linked_scaled_photo @photo, @album