From 0f6f9a4b0a849fc6188d1a1cadd1a78e9a764aca Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Wed, 27 Jul 2011 22:32:15 +0200 Subject: [PATCH 1/2] Darken the background of a conversation with unread posts in inbox, instead of lightening it (since default background color is white now). --- public/stylesheets/sass/application.sass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 5a4b4ee1e..adcfb5588 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -2544,7 +2544,7 @@ ul.show_comments, .conversation.unread :background - :color lighten($background,5%) + :color darken($background,5%) .conversation.selected :background From cc3ba8b076752e832b112f825d928927e0a098ad Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Wed, 27 Jul 2011 22:33:13 +0200 Subject: [PATCH 2/2] Display unread post count for conversations in inbox, if appropriate. --- app/views/conversations/_conversation.haml | 3 +++ public/stylesheets/sass/application.sass | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/app/views/conversations/_conversation.haml b/app/views/conversations/_conversation.haml index 72bc1baa6..604088436 100644 --- a/app/views/conversations/_conversation.haml +++ b/app/views/conversations/_conversation.haml @@ -7,6 +7,9 @@ = person_image_tag(conversation.author) .subject + - if unread_counts[conversation.id].to_i > 0 + .unread_message_count + = unread_counts[conversation.id].to_i .message_count = conversation.messages.size diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index adcfb5588..956a9cd50 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -2513,6 +2513,19 @@ ul.show_comments, :size 12px :weight normal + .unread_message_count + @include border-radius(5px) + + :right 30px + :background + :color #b11 + :color #eee + :position absolute + :padding 0 5px + :font + :size 12px + :weight normal + .participant_count :font :weight normal