From 755c708a661f722ce2aa22ee528f3f8d5253fad6 Mon Sep 17 00:00:00 2001 From: Sparks Date: Fri, 26 Oct 2018 15:11:20 +0700 Subject: [PATCH 1/2] Update show.html.erb --- app/views/notes/show.html.erb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index 8fb9772ce6..faacaa2c7a 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -37,6 +37,15 @@ + + + | <%= number_with_delimiter(@node.totalviews) %> <%= t('notes.show.views') %> + <% if @node.comments %> + | + <%= @node.comments.length %> <%= t('notes.show.comments') %> + <% end %> + | +