Display unread post count for conversations in inbox, if appropriate.

This commit is contained in:
Andrej Kacian 2011-07-27 22:33:13 +02:00
parent 0f6f9a4b0a
commit cc3ba8b076
2 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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