From 3ff4b67ff0fec77d33e30d30c14dd2d52364b08b Mon Sep 17 00:00:00 2001
From: danielvincent <danielgrippi@gmail.com>
Date: Thu, 6 Jan 2011 16:41:40 -0800
Subject: [PATCH] touched up stream_element and comment partial

---
 app/views/comments/_comment.haml         | 16 ++++++++--------
 app/views/shared/_stream_element.haml    |  4 ++--
 public/stylesheets/sass/application.sass | 17 ++++++++---------
 3 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/app/views/comments/_comment.haml b/app/views/comments/_comment.haml
index 62f05b1936..b73f542db4 100644
--- a/app/views/comments/_comment.haml
+++ b/app/views/comments/_comment.haml
@@ -1,14 +1,14 @@
 -#   Copyright (c) 2010, Diaspora Inc.  This file is
 -#   licensed under the Affero General Public License version 3 or later.  See
 -#   the COPYRIGHT file.
-- comment = hash[:comment]
-- person = hash[:person]
-%li.comment{:data=>{:guid=>comment.id}, :class => ("hidden" if(defined? hidden))}
-  =person_image_link(person)
+
+%li.comment{:data=>{:guid=>hash[:comment].id}, :class => ("hidden" if(defined? hidden))}
+  = person_image_link(hash[:person])
   .content
     .from
-      =person_link(person)
-    = markdownify(comment.text, :youtube_maps => comment[:youtube_titles])
-    %div.time
-      = comment.created_at ? t('ago', :time => time_ago_in_words(comment.created_at)) : time_ago_in_words(Time.now)
+      = person_link(hash[:person])
+    = markdownify(hash[:comment].text, :youtube_maps => hash[:comment][:youtube_titles])
 
+    .info
+      %span.time
+        = hash[:comment].created_at ? t('ago', :time => time_ago_in_words(hash[:comment].created_at)) : time_ago_in_words(Time.now)
diff --git a/app/views/shared/_stream_element.haml b/app/views/shared/_stream_element.haml
index 808099f0be..b288b378c3 100644
--- a/app/views/shared/_stream_element.haml
+++ b/app/views/shared/_stream_element.haml
@@ -4,7 +4,7 @@
 
 .stream_element{:data=>{:guid=>post.id}}
   - if person.owner_id == current_user.id
-    .right.controls
+    .right.hidden.controls
       - reshare_aspects = aspects_without_post(all_aspects, post)
       - unless reshare_aspects.empty?
         = render 'shared/reshare', :aspects => reshare_aspects, :post => post
@@ -14,7 +14,7 @@
 
   .content
     .from
-      %h4
+      %h5
         =person_link(person)
 
       - if post.public?
diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass
index 516e70be01..06b41d7a2e 100644
--- a/public/stylesheets/sass/application.sass
+++ b/public/stylesheets/sass/application.sass
@@ -120,7 +120,7 @@ header
     :color #111
     :color rgba(30,30,30,0.98)
 
-  :background -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(30,30,30,0.84)), to(rgba(0,0,0,0.96)))
+  :background -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(25,25,25,0.83)), to(rgba(0,0,0,0.98)))
 
   :-webkit-box-shadow 0 1px 3px #111
   :-moz-box-shadow 0 1px 2px #111
@@ -238,7 +238,7 @@ header
 
 .stream
   .stream_element
-    :padding 0.7em 1em
+    :padding 0.7em 1.2em
     :min-height 50px
     :border
       :bottom 1px solid #eee
@@ -309,7 +309,7 @@ header
   :color #777
 
   .from
-    h4
+    h5
       :display inline
       a
         :color #444
@@ -318,7 +318,7 @@ header
     :margin
       :top 0
     :padding
-      :left 60px
+      :left 63px
 
     :color #444
     :font
@@ -508,7 +508,7 @@ header
 
   ul.comments
     textarea
-      :width 284px
+      :width 275px
 
 .stream ul.comments
   .avatar
@@ -536,7 +536,7 @@ ul.show_comments
   li
     :list
       :style none
-    :padding 0.7em
+    :padding 0.5em
     :border
       :bottom 1px solid #ddd
       :top 1px solid #fff
@@ -558,7 +558,7 @@ ul.show_comments
         :top 0px
         :bottom -2px
       :padding
-        :left 40px
+        :left 38px
         :right 20px
       .from
         a
@@ -576,7 +576,7 @@ ul.show_comments
       textarea
         :font
           :size 1em
-        :width 485px
+        :width 478px
 
     .submit_instructions
       :text-align center
@@ -616,7 +616,6 @@ ul.show_comments
 
 .stream_element
   .right
-    :display none
     :position absolute
     :right 12px
 
-- 
GitLab