diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/inboxes/discussions/index.html.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/inboxes/discussions/index.html.haml b/app/views/inboxes/discussions/index.html.haml index 3d47a59..433e929 100644 --- a/app/views/inboxes/discussions/index.html.haml +++ b/app/views/inboxes/discussions/index.html.haml @@ -11,7 +11,10 @@ %td = link_to discussion.users.collect{|u| u[Inboxes::config.user_name]}.join(', '), discussion %td - = discussion.unread_for?(current_user) ? (discussion.count_unread_mess(current_user).to_s + ' сообщение') : "No" + - if discussion.unread_for?(current_user) + = pluralize(discussion.unread_messages_count_for(current_user), "message") + - else + No unread messages %p = link_to "Create new", new_discussion_path |
