Correctly space unread and total message counts in conversations list

This commit is contained in:
Andrej Kacian 2011-08-07 04:06:26 +02:00
parent a62325be23
commit 6b64d7f55a
2 changed files with 10 additions and 8 deletions

View file

@ -7,11 +7,11 @@
= person_image_tag(conversation.author) = person_image_tag(conversation.author)
.subject .subject
.message_count
= conversation.messages.size
- if unread_counts[conversation.id].to_i > 0 - if unread_counts[conversation.id].to_i > 0
.unread_message_count .unread_message_count
= unread_counts[conversation.id].to_i = unread_counts[conversation.id].to_i
.message_count
= conversation.messages.size
%div{ :class => direction_for(conversation.subject) } %div{ :class => direction_for(conversation.subject) }
= conversation.subject[0..30] = conversation.subject[0..30]

View file

@ -2498,12 +2498,13 @@ ul.show_comments,
.message_count .message_count
@include border-radius(5px) @include border-radius(5px)
:right 10px :float right
:right 0px
:padding 0 5px
:position relative
:background :background
:color #999 :color #999
:color #eee :color #eee
:position absolute
:padding 0 5px
:font :font
:size 12px :size 12px
:weight normal :weight normal
@ -2511,12 +2512,13 @@ ul.show_comments,
.unread_message_count .unread_message_count
@include border-radius(5px) @include border-radius(5px)
:right 30px :float right
:right 5px
:padding 0 5px
:position relative
:background :background
:color #b11 :color #b11
:color #eee :color #eee
:position absolute
:padding 0 5px
:font :font
:size 12px :size 12px
:weight normal :weight normal