fixed photo show header
This commit is contained in:
parent
b49eaa1ceb
commit
01b14a66e8
4 changed files with 14 additions and 13 deletions
|
|
@ -24,7 +24,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
= content_for :page_title do
|
= content_for :page_title do
|
||||||
= link_to "Home", aspects_path
|
= link_to "◂ Home", aspects_path
|
||||||
|
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
= render "shared/aspect_friends"
|
= render "shared/aspect_friends"
|
||||||
|
|
@ -32,7 +32,8 @@
|
||||||
- content_for :publish do
|
- content_for :publish do
|
||||||
%h1
|
%h1
|
||||||
Albums
|
Albums
|
||||||
= link_to 'New Album', '#new_album_pane', {:class => "button", :id => "add_album_button"}
|
.right
|
||||||
|
= link_to 'New Album', '#new_album_pane', {:class => "button", :id => "add_album_button"}
|
||||||
|
|
||||||
.yo{:style => "display:none;" }
|
.yo{:style => "display:none;" }
|
||||||
#new_album_pane
|
#new_album_pane
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
= content_for :page_title do
|
= content_for :page_title do
|
||||||
= link_to "Albums", albums_path
|
= link_to "◂ Albums", albums_path
|
||||||
|
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
= render "shared/aspect_friends"
|
= render "shared/aspect_friends"
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
.page_title
|
.page_title
|
||||||
= yield :page_title
|
= yield :page_title
|
||||||
|
|
||||||
.span-19.last
|
.span-19.last{ :style => "position:relative;" }
|
||||||
= yield :publish
|
= yield :publish
|
||||||
|
|
||||||
.container
|
.container
|
||||||
|
|
|
||||||
|
|
@ -30,26 +30,26 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
= content_for :page_title do
|
= content_for :page_title do
|
||||||
= link_to "Photo", @photo
|
= link_to "◂ #{@photo.album.name}", @photo.album
|
||||||
|
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
= render "shared/aspect_friends"
|
= render "shared/aspect_friends"
|
||||||
|
|
||||||
|
- content_for :publish do
|
||||||
|
%h1
|
||||||
|
= @photo.image
|
||||||
|
|
||||||
%h1.big_text
|
|
||||||
= @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 "<< prev", url_to_prev(@photo, @album)
|
||||||
|
|
|
|
||||||
= link_to "full size", @photo.url
|
= link_to "full size", @photo.url
|
||||||
|
|
|
|
||||||
= link_to "next >>", url_to_next(@photo, @album)
|
= 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}
|
%div{:id => @photo.id}
|
||||||
#show_photo
|
#show_photo
|
||||||
= linked_scaled_photo @photo, @album
|
= linked_scaled_photo @photo, @album
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue