From f423719cc77948f0e2ceb27e1e0685115841a9a5 Mon Sep 17 00:00:00 2001 From: Sparks Date: Sun, 28 Oct 2018 05:23:54 +0700 Subject: [PATCH] Number of views and comments on small screens (#3795) * Update show.html.erb * collapse-btn style --- app/views/notes/show.html.erb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index 8fb9772ce6..797f35bcca 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 %> + | +