From a83c818183a7bf25490c3eebe21e03caa937c9c6 Mon Sep 17 00:00:00 2001 From: Nick Miller Date: Tue, 14 Apr 2020 11:58:59 -0400 Subject: [PATCH] Fix "Like" emoji displays --- app/views/notes/_note.html.erb | 2 +- app/views/search/_result.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %>
<% if @like %> -

❤️ +<%=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%>