From f6fd6bc9e61967daf8745f78ec0c908a5a84d477 Mon Sep 17 00:00:00 2001 From: danielvincent <danielgrippi@gmail.com> Date: Fri, 23 Jul 2010 20:28:10 -0700 Subject: [PATCH] added breadcrumb to albums --- app/views/albums/new.html.haml | 5 +++++ app/views/albums/show.html.haml | 7 ++++--- app/views/layouts/application.html.haml | 2 +- public/stylesheets/application.css | 1 - public/stylesheets/sass/application.sass | 1 - 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/views/albums/new.html.haml b/app/views/albums/new.html.haml index 74c3b6175b..2f4450cd90 100644 --- a/app/views/albums/new.html.haml +++ b/app/views/albums/new.html.haml @@ -1,3 +1,8 @@ +%h1.big_text + =link_to 'albums', albums_path + >> + new album + = form_for @album do |f| = f.error_messages %p diff --git a/app/views/albums/show.html.haml b/app/views/albums/show.html.haml index 503203868e..674f8ab0c5 100644 --- a/app/views/albums/show.html.haml +++ b/app/views/albums/show.html.haml @@ -1,4 +1,7 @@ -%h3= @album.name +%h1.big_text + = link_to 'albums', albums_path + >> + = @album.name -unless mine? @album %h4= 'by ' + @album.person.real_name -if mine? @album @@ -9,5 +12,3 @@ -if mine? @album %p = link_to "Destroy", @album, :confirm => 'Are you sure?', :method => :delete - | - = link_to "View All", albums_path diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 9d4472f8c2..67a1646b47 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -55,7 +55,7 @@ %br = render 'people/sidebar' if user_signed_in? - .span-20.last + .span-18.last = yield = render "posts/debug" diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 1e07f4ec1b..ce04e18f8a 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -265,7 +265,6 @@ label { left: 0.48em; } #publisher { - background-color: #f2f8fc; background-color: rgba(10, 81, 109, 0.05); border-bottom: 2px #999999 solid; color: #999999; diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 3b83f41456..fb4fc61397 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -313,7 +313,6 @@ label #publisher :background - :color #F2F8FC :color rgba(10,81,109,0.05) :border :bottom 2px #999 solid -- GitLab