add messages to mobile

This commit is contained in:
Lennart Prelle 2012-07-14 13:33:20 +02:00
parent 47412a39e7
commit 00032a1649
2 changed files with 29 additions and 0 deletions

View file

@ -648,3 +648,27 @@ display: inline-block;
width: 28px; width: 28px;
} }
#conversation_inbox .message_count {
border-radius: 5px;
float: right;
right: 0px;
margin: 5px 5px auto;
padding: 5px;
position: relative;
background-color: #999;
color: #eee;
font-size: 25px;
font-weight: bold;
}
.conversation_participants img.avatar{
height:35px;
width:35px;
margin: 5px 0 5px 2px;
}
form#new_message.new_message input.button.creation{
float: right;
margin: 0 5px 5px;
}

View file

@ -60,6 +60,11 @@
- if current_user.unread_notifications.count > 0 - if current_user.unread_notifications.count > 0
.badge_count .badge_count
= current_user.unread_notifications.count = current_user.unread_notifications.count
.badge{:class => "badge-inverse", :id => "conversations_badge"}
= link_to(image_tag('icons/mail_grey.png', :height => 16, :width => 16), conversations_path)
- if current_user.unread_message_count > 0
.badge_count
= current_user.unread_message_count
- if user_signed_in? - if user_signed_in?
.right .right