aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/_submenu.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/blog/_submenu.html.erb')
-rw-r--r--app/views/admin/blog/_submenu.html.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb
index 246488a..5c93891 100644
--- a/app/views/admin/blog/_submenu.html.erb
+++ b/app/views/admin/blog/_submenu.html.erb
@@ -24,7 +24,12 @@
<ul class='collapsible_menu'>
<li>
- <%= link_to t('.comments.title'), '#',
+ <% if BlogComment.unmoderated.any? %>
+ <% title = t('.comments.title_with_count', :new_count => BlogComment.unmoderated.size) %>
+ <% else %>
+ <% title = t('.comments.title') %>
+ <% end %>
+ <%= link_to title, '#',
:class => 'comments_icon' %>
</li>
<li>