diff --git a/app/views/notes/_note.html.erb b/app/views/notes/_note.html.erb index ae2f980..49ee39a 100644 --- a/app/views/notes/_note.html.erb +++ b/app/views/notes/_note.html.erb @@ -9,7 +9,7 @@ <% if with_tools %>
❤️ +<%=number_to_human @note.likes.size%>
+<%= heart %> +<%=number_to_human @note.likes.size%>
<% else %> <%=form_with url: note_likes_path(note_identifier: @note.identifier), local: true do |form| %> <%=form.button "#{heart} +#{number_to_human @note.likes.size}", type: :submit, title: 'Like this note', class: 'like-note' %> diff --git a/app/views/search/_result.html.erb b/app/views/search/_result.html.erb index 984e9b5..4b69efc 100644 --- a/app/views/search/_result.html.erb +++ b/app/views/search/_result.html.erb @@ -3,6 +3,6 @@- #{heart} +<%=number_to_human note.likes.size%> + <%= heart %> +<%=number_to_human note.likes.size%>