diff options
| author | dima | 2011-12-11 11:14:09 +0100 |
|---|---|---|
| committer | dima | 2011-12-11 11:14:09 +0100 |
| commit | c94547a6bab514e6df816e105f17311ba2ce73c9 (patch) | |
| tree | c765206549958d0642698c891ed6c840805277bc /app/views | |
| parent | 932790890a583cf877ef06a218316b82a7014b60 (diff) | |
| download | inboxes-c94547a6bab514e6df816e105f17311ba2ce73c9.tar.bz2 | |
выводим количество непрочитанных сообщений в дискуссии
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/inboxes/discussions/index.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/inboxes/discussions/index.html.haml b/app/views/inboxes/discussions/index.html.haml index 7e300d4..3d47a59 100644 --- a/app/views/inboxes/discussions/index.html.haml +++ b/app/views/inboxes/discussions/index.html.haml @@ -11,7 +11,7 @@ %td = link_to discussion.users.collect{|u| u[Inboxes::config.user_name]}.join(', '), discussion %td - = discussion.unread_for?(current_user) ? "Yes" : "No" + = discussion.unread_for?(current_user) ? (discussion.count_unread_mess(current_user).to_s + ' сообщение') : "No" %p - = link_to "Create new", new_discussion_path
\ No newline at end of file + = link_to "Create new", new_discussion_path |
