minor cleanup on album flow

This commit is contained in:
Daniel Vincent Grippi 2010-09-13 19:54:30 -07:00
parent aa5447f553
commit fe57a698d3
3 changed files with 9 additions and 11 deletions

View file

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

View file

@ -25,21 +25,19 @@
}); });
= content_for :page_title do = content_for :page_title do
= link_to @album.name, @album = link_to "Albums", albums_path
- content_for :left_pane do - content_for :left_pane do
= render "shared/aspect_friends" = render "shared/aspect_friends"
- content_for :publish do - content_for :publish do
-if current_user.owns? @album %h1
=render 'photos/new_photo' = @album.name
="updated #{how_long_ago(@album)}"
.album_id{:id => @album.id, :style => "display:hidden;"} .album_id{:id => @album.id, :style => "display:hidden;"}
.sub_header
="updated #{how_long_ago(@album)}"
-unless current_user.owns? @album -unless current_user.owns? @album
%h4= "by #{@album.person.real_name}" %h4= "by #{@album.person.real_name}"
@ -47,6 +45,8 @@
- for photo in @album_photos - for photo in @album_photos
.image_thumb .image_thumb
= link_to (image_tag photo.url(:thumb_medium)), object_path(photo) = link_to (image_tag photo.url(:thumb_medium)), object_path(photo)
-if current_user.owns? @album
=render 'photos/new_photo'
#content_bottom #content_bottom
.back .back

View file

@ -56,9 +56,6 @@
%span.sub_text %span.sub_text
PREVIEW PREVIEW
%span{:style => "padding-left:30px;"}
= link_to "photos", albums_path
#session_action #session_action
%ul %ul
%li#global_search %li#global_search