diff --git a/app/helpers/dashboards_helper.rb b/app/helpers/dashboards_helper.rb index aab2aa7a636caf741f08f0ee1e6f7e237dcd4fa8..457e9d52225951d3417bf3bd8549e19584be4734 100644 --- a/app/helpers/dashboards_helper.rb +++ b/app/helpers/dashboards_helper.rb @@ -2,9 +2,9 @@ module DashboardsHelper def title_for_page if params[:action] =='ostatus' - 'OStatus Dashboard' + 'OStatus home' else - 'Dashboard' + 'home' end end end diff --git a/app/views/albums/new.html.haml b/app/views/albums/new.html.haml index 74c3b6175b7f4cbcaee16229bf70886ec4811df6..2f4450cd90550eb759cd798d629bfec651ff281a 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 503203868e18978b589308376077843e7cd52991..674f8ab0c563201b2b4d1158dffe96dc6c8db09b 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/dashboards/index.html.haml b/app/views/dashboards/index.html.haml index a19ff1e51c0b11731606b108488715fb28666499..088ec334fb1cd3c6659971092d7f3a9cbb8bc360 100644 --- a/app/views/dashboards/index.html.haml +++ b/app/views/dashboards/index.html.haml @@ -1,5 +1,11 @@ +- if user_signed_in? + %h1#user_name + = link_to current_user.real_name, root_path + %span.description + = my_latest_message %h1= title_for_page += render "shared/publisher" %ul#stream - for post in @posts = render type_partial(post), :post => post diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 85ca17c53142cdb78ad97dc2e6f916cdb1d3685c..50f8f6ee41b60919c5eca14c7156e62e9088de4f 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -39,24 +39,25 @@ = link_to "logout", destroy_user_session_path - else = link_to "login", new_user_session_path + .container + = link_to "home", root_path + | + = link_to "photos", albums_path + | + = link_to "ostatus", ostatus_path + %br + %br - - = render "shared/publisher" .container .span-24.last - .span-3.append-1.last + .span-3.append-2.last = link_to person_image_tag(User.owner), root_path = link_to "Edit your profile", edit_user_path(current_user) %br %br = render 'people/sidebar' if user_signed_in? - - .span-20.last - - if user_signed_in? - %h1#user_name - = link_to current_user.real_name, root_path - %span.description - = my_latest_message + .span-19.last = yield + .span-24.last = render "posts/debug" diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index effb40f331a1e1a661febc899e8f523217752c35..ccc0687f30ed3739f583e3162a1ecf419153f467 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -10,9 +10,10 @@ = linked_scaled_photo @photo, @album #photo_pagination - = link_to_prev @photo, @album - | - = link_to_next @photo, @album + %center + = link_to_prev @photo, @album + | + = link_to_next @photo, @album -if mine?(@photo) %p diff --git a/app/views/requests/new.html.haml b/app/views/requests/new.html.haml index 9343e8273ce9cc79d4141e4285f7f38b77e3a166..8a52769981c7e2944307e30cf0dda4a2a58649ba 100644 --- a/app/views/requests/new.html.haml +++ b/app/views/requests/new.html.haml @@ -1,4 +1,4 @@ -- title "New Request" +%h1 requests = render 'form' diff --git a/app/views/shared/_publisher.haml b/app/views/shared/_publisher.haml index 97af3cb308e1d36c030e396a11a9396e71b87446..8e629a9698ee2707326e4172675292e4d5537b4c 100644 --- a/app/views/shared/_publisher.haml +++ b/app/views/shared/_publisher.haml @@ -1,41 +1,38 @@ #publisher - .container - %sp - Post a new - %ul#publisher_content_pickers - %li{ :class => "status_message" }= link_to "status message", "#" - %li{ :class => "bookmark" }= link_to "bookmark", "#" - %li{ :class => "blog" }= link_to "blog", "#" - %li= link_to "photos", albums_path - %li= link_to "ostatus", ostatus_path + %sp + Post a new + %ul#publisher_content_pickers + %li{ :class => "status_message selected" }= link_to "status message", "#" + %li{ :class => "bookmark" }= link_to "bookmark", "#" + %li{ :class => "blog" }= link_to "blog", "#" - #publisher_form - = form_for StatusMessage.new, :remote => true do |f| - = f.error_messages - %p - %label{:for => "status_message_message"} Message - = f.text_area :message, :rows => 2 - %p - = f.submit "Post" + #publisher_form + = form_for StatusMessage.new, :remote => true do |f| + = f.error_messages + %p + %label{:for => "status_message_message"} Message + = f.text_area :message, :rows => 2 + %p + = f.submit "Post" - = form_for Bookmark.new, :remote => true do |f| - = f.error_messages - %p - %label{:for => "bookmark_title"} Title - = f.text_field :title - %p - %label{:for => "bookmark_link"} Link - = f.text_field :link - %p - = f.submit "Post" + = form_for Bookmark.new, :remote => true do |f| + = f.error_messages + %p + %label{:for => "bookmark_title"} Title + = f.text_field :title + %p + %label{:for => "bookmark_link"} Link + = f.text_field :link + %p + = f.submit "Post" - = form_for Blog.new, :remote => true do |f| - = f.error_messages - %p - %label{:for => "blog_title"} Title - = f.text_field :title - %p - %label{:for => "blog_body"} Body - = f.text_area :body - %p - = f.submit "Post" + = form_for Blog.new, :remote => true do |f| + = f.error_messages + %p + %label{:for => "blog_title"} Title + = f.text_field :title + %p + %label{:for => "blog_body"} Body + = f.text_area :body + %p + = f.submit "Post" diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index dbf7752303f7526c918dfff0aa7c94d1cf994fa9..9182161a31d2c63e87dcd017c8e782ad47a422f3 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -1,4 +1,3 @@ -%h1 user page! .span-20.last %h1= "#{@user.real_name}" - if @user_profile diff --git a/public/javascripts/publisher.js b/public/javascripts/publisher.js index 19dc542bd1f83a5600469cb9e674792a37a0b4e5..5e5386dbe9003132dc9deb12c26f71e97bcd4660 100644 --- a/public/javascripts/publisher.js +++ b/public/javascripts/publisher.js @@ -14,9 +14,6 @@ $(this).toggleClass("selected"); $(form_id).delay(50).fadeIn(200); - } else { - $("#publisher_content_pickers").children("li").removeClass("selected"); - $("#publisher_form form").fadeOut(200); } } }); diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index e046187a0ca2f0994234a9e38bb35dd791dba93d..21ad80d48dfe83fd5f1f658fa251948ef7059cf9 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -64,18 +64,14 @@ a { header { position: relative; margin: -2em; - margin-bottom: 0; - height: 50px; + margin-bottom: 1em; color: #555555; - background-color: black; - background-color: -webkit-gradient(linear, 0% 0%, 0% 55%, from(#474747), to(black)); - background-color: #414545; background-color: #2b2726; border-bottom: 1px solid #444444; - padding-top: 20px; - box-shadow: 0 2px 10px black; - -webkit-box-shadow: 0 2px 10px black; - -moz-box-shadow: 0 2px 10px black; } + padding: 8px 0; + box-shadow: 0 2px 2px black; + -webkit-box-shadow: 0 2px 2px black; + -moz-box-shadow: 0 2px 2px black; } header #diaspora_text { font-family: "BrandonGrotesqueLightRegular"; font-size: 24px; @@ -84,7 +80,7 @@ header { color: white; text-shadow: 0 2px 0 black; } header #diaspora_text a { - color: white; } + color: #666666; } header #diaspora_text span.sub_text { color: black; text-shadow: none; } @@ -160,6 +156,7 @@ form { margin-left: 0em; } #user_name { + display: inline; margin-bottom: 1em; } #user_name a { color: black; } @@ -201,7 +198,8 @@ img.person_picture { display: inline block; } li.message > img.person_picture, -li.comment > img.person_picture { +li.comment > img.person_picture, +#session_action > img.person_picture { height: 30px; display: absolute; float: left; @@ -269,42 +267,30 @@ label { left: 0.48em; } #publisher { - padding: 0.5em 0; - background-color: #f2f8fc; - background-color: #333333; - border-bottom: 1px #eaeaea solid; - margin: 0 -2em; - margin-bottom: 2em; + background-color: rgba(10, 81, 109, 0.05); + border-bottom: 2px #999999 solid; color: #999999; - box-shadow: 0 2px 20px #999999; - -webkit-box-shadow: 0 2px 20px #999999; - -moz-box-shadow: 0 2px 20px #999999; } - #publisher sp { - text-shadow: 0 2px 0 black; } - #publisher textarea, #publisher input { - box-shadow: 0 0px 3px black; - -webkit-box-shadow: 0 0px 3px black; - -moz-box-shadow: 0 0px 3px #999999; } + padding: 20px 1em; + padding-top: 10px; } #new_blog, -#new_bookmark, -#new_status_message { +#new_bookmark { display: none; } ul#publisher_content_pickers { display: inline; margin: 0 -10px; padding: 0; - margin-left: 10px; - text-shadow: 0 2px 0 black; } + margin-left: 10px; } ul#publisher_content_pickers li { display: inline; padding: 5px 10px; margin-right: 5px; } -#publisher.selected { - border-bottom: 3px solid #999999; } +#publisher .selected { + border-bottom: 3px solid #999999; + background-color: rgba(10, 81, 109, 0.1); } #image_picker .small_photo { height: 100px; diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index eb19e529725b76ce1038efc26610086de4cf75e7..9fa68bb692515a1f5c7ce119aff0b7fcbcdca1e4 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -68,21 +68,16 @@ a header :position relative :margin -2em - :bottom 0 - :height 50px + :bottom 1em :color #555 :background - :color #000 - :color -webkit-gradient(linear, 0% 0%, 0% 55%, from(#474747), to(#000000)) - :color rgb(65,69,69) :color #2B2726 :border :bottom 1px solid #444 - :padding - :top 20px - :box-shadow 0 2px 10px #000 - :-webkit-box-shadow 0 2px 10px #000 - :-moz-box-shadow 0 2px 10px #000 + :padding 8px 0 + :box-shadow 0 2px 2px #000 + :-webkit-box-shadow 0 2px 2px #000 + :-moz-box-shadow 0 2px 2px #000 #diaspora_text :font @@ -94,7 +89,7 @@ header :text :shadow 0 2px 0 #000 a - :color #fff + :color #666 span.sub_text :color #000 @@ -187,6 +182,7 @@ form #user_name + :display inline :margin :bottom 1em a @@ -239,7 +235,8 @@ img.person_picture :display inline block li.message > img.person_picture, -li.comment > img.person_picture +li.comment > img.person_picture, +#session_action > img.person_picture :height 30px :display absolute :float left @@ -317,30 +314,16 @@ label :left 0.48em #publisher - :padding 0.5em 0 :background - :color #F2F8FC - :color #333 + :color rgba(10,81,109,0.05) :border - :bottom 1px #eaeaea solid - :margin 0 -2em - :bottom 2em + :bottom 2px #999 solid :color #999 - :box-shadow 0 2px 20px #999 - :-webkit-box-shadow 0 2px 20px #999 - :-moz-box-shadow 0 2px 20px #999 - - sp - :text-shadow 0 2px 0 #000 - - textarea, input - :box-shadow 0 0px 3px #000 - :-webkit-box-shadow 0 0px 3px #000 - :-moz-box-shadow 0 0px 3px #999 + :padding 20px 1em + :top 10px #new_blog, -#new_bookmark, -#new_status_message +#new_bookmark :display none ul#publisher_content_pickers @@ -349,7 +332,6 @@ ul#publisher_content_pickers :padding 0 :margin :left 10px - :text-shadow 0 2px 0 #000 ul#publisher_content_pickers li :display inline @@ -357,9 +339,11 @@ ul#publisher_content_pickers li :margin :right 5px -#publisher.selected +#publisher .selected :border :bottom 3px solid #999 + :background + :color rgba(10,81,109,0.1) #image_picker .small_photo