From 4d8b0a01ce3cb2cb7d5dfb6635167be5d1d19853 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Sat, 15 Aug 2015 01:13:34 +0200 Subject: [PATCH] Includes count number of comments on debate show --- app/views/debates/show.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb index 782ecb040..b822d5c4e 100644 --- a/app/views/debates/show.html.erb +++ b/app/views/debates/show.html.erb @@ -52,7 +52,11 @@
-

<%= t("debates.show.comments_title") %>

+ +

+ <%= t("debates.show.comments_title") %> + (<%= t("debates.show.comments", count: @debate.comment_threads.count) %>) +

<% if user_signed_in? %>
<%= t("debates.show.leave_comment") %> @@ -62,4 +66,4 @@ <%= render @debate.root_comments.recent %>
-
\ No newline at end of file +