diff --git a/app/helpers/status_messages_helper.rb b/app/helpers/status_messages_helper.rb index a5655a9e35f27c168f97fd84bd6d22d22e8b4d2b..522b990a467c5761c172ccd80799b93668a7da7c 100644 --- a/app/helpers/status_messages_helper.rb +++ b/app/helpers/status_messages_helper.rb @@ -3,7 +3,7 @@ module StatusMessagesHelper def my_latest_message message = @latest_status_message unless message.nil? - return message.message + " - " + how_long_ago(message) + return message.message#+ " - " + how_long_ago(message) else return "No message to display." end diff --git a/app/views/dashboards/index.html.haml b/app/views/dashboards/index.html.haml index 5cab5d2d5d561b47c01f67820b13ad81766e8fe6..daaaaaabc1ad01622232a1c331f79aa1491031ac 100644 --- a/app/views/dashboards/index.html.haml +++ b/app/views/dashboards/index.html.haml @@ -1,9 +1,3 @@ -- if user_signed_in? - %h1#user_name - = link_to current_user.real_name, root_path - %span= title_for_page - %h3#latest_message - = my_latest_message = render "shared/publisher" %ul#stream - for post in @posts diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 07e4dfae01cb13c02571a67994c96b653f9e3b2a..eb5e5dd55ec64a0ccbc9b47656da2cd9bcc44718 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -41,22 +41,28 @@ = 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 + - if user_signed_in? + #user_name + = link_to(person_image_tag(current_user), root_path) + %h1 + = link_to current_user.real_name, root_path + %span#latest_message + = my_latest_message + + %ul.nav + %li= link_to "home", root_path + %li= link_to "photos", albums_path + %li= link_to "ostatus", ostatus_path .container .span-24.last .span-20.append-1.last + = yield + .span-3.last - = link_to(person_image_tag(current_user), root_path) - %br = link_to "Edit your profile", edit_user_path(current_user) %br %br diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 4230ed57a0d09b05d0fa8a4de6df2be21ccabca2..4f9b560c2d4b96683f05619ac3f820f9ffa4b462 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -64,7 +64,7 @@ a { header { position: relative; margin: -2em; - margin-bottom: 1em; + margin-bottom: 60px; color: #555555; background-color: #2b2726; border-bottom: 3px solid #333333; @@ -150,7 +150,7 @@ h1 { padding: 0.1em; } h3 { - position: relative; + position: relativex; font-size: 18px; font-weight: bold; } @@ -160,20 +160,28 @@ form { margin-left: 0em; } #user_name { - display: inline; - margin-bottom: 1em; - font-size: 70px; - line-height: 100px; } - #user_name a { - color: black; } - #user_name span { - line-height: 140px; - font-size: 30%; - color: #dddddd; - float: right; } - -#latest_message { - font-weight: normal; } + margin-bottom: 3em; } + #user_name img { + margin-right: 10px; + display: inline-block; + float: left; + height: 40px; } + #user_name h1 { + margin-bottom: 7px; + line-height: 18px; } + #user_name h1 a { + color: black; } + #user_name #latest_message { + font-weight: normal; + color: #999999; } + #user_name ul { + display: inline; + margin: 0; + padding: 0; + list-style: none; } + #user_name ul > li { + display: inline; + margin-right: 1em; } #stream div.comments { display: none; } @@ -201,8 +209,7 @@ ul.comment_set { color: #333333; font-weight: bold; } ul.comment_set li.comment form { - margin-top: -5px; - padding-bottom: 8px; } + margin-top: -5px; } .profile_photo { float: left; @@ -291,8 +298,7 @@ label { background-color: rgba(10, 81, 109, 0.05); border-bottom: 2px #999999 solid; color: #999999; - padding: 20px 1em; - padding-top: 10px; } + padding: 15px 1em; } #new_blog, #new_bookmark { diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 23b4ecf2593c4f3979d8343539a3b615f0ff0b26..64b37390feef6a984168a43494d22b33f247f49f 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -68,7 +68,7 @@ a header :position relative :margin -2em - :bottom 1em + :bottom 60px :color #555 :background :color #2B2726 @@ -175,7 +175,7 @@ h1 :padding 0.1em h3 - :position relative + :position relativex :font :size 18px :weight bold @@ -188,24 +188,38 @@ form #user_name - :display inline :margin - :bottom 1em - :font - :size 70px - :line-height 100px - a - :color #000 - span - :line-height 140px + :bottom 3em + + img + :margin + :right 10px + :display inline-block + :float left + :height 40px + + h1 + :margin + :bottom 7px + :line-height 18px + a + :color #000 + + #latest_message :font - :size 30% - :color #dddddd - :float right + :weight normal + :color #999 -#latest_message - :font - :weight normal + ul + :display inline + :margin 0 + :padding 0 + :list-style none + + > li + :display inline + :margin + :right 1em #stream div.comments @@ -244,9 +258,6 @@ ul.comment_set form :margin :top -5px - :padding - :bottom 8px - .profile_photo :float left @@ -350,8 +361,7 @@ label :border :bottom 2px #999 solid :color #999 - :padding 20px 1em - :top 10px + :padding 15px 1em #new_blog, #new_bookmark