posts: fix favorite icon.

Fix the favorite button using the outlined heart icon instead of the
solid heart icon.
This commit is contained in:
evazion
2021-01-23 14:33:45 -06:00
parent 7629a99030
commit 5fd33ad545
5 changed files with 10 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
<span class="post-tooltip-favorites post-tooltip-info">
<span><%= @post.fav_count %></span>
<%= favorite_icon(class: "fa-xs") %>
<%= empty_heart_icon(class: "fa-xs") %>
</span>
<span class="post-tooltip-score post-tooltip-info">

View File

@@ -52,11 +52,11 @@
<% if policy(Favorite).create? %>
<%= content_tag(:div, class: "fav-buttons fav-buttons-#{@post.favorited_by?(CurrentUser.user)}") do %>
<%= form_tag(favorites_path(post_id: @post.id), method: "post", id: "add-fav-button", "data-remote": true) do %>
<%= button_tag favorite_icon, class: "ui-button ui-widget ui-corner-all", "data-disable-with": spinner_icon %>
<%= button_tag empty_heart_icon, class: "ui-button ui-widget ui-corner-all", "data-disable-with": spinner_icon %>
<% end %>
<%= form_tag(favorite_path(@post.id), method: "delete", id: "remove-fav-button", "data-remote": true) do %>
<%= button_tag favorite_icon, class: "ui-button ui-widget ui-corner-all", "data-disable-with": spinner_icon %>
<%= button_tag solid_heart_icon, class: "ui-button ui-widget ui-corner-all", "data-disable-with": spinner_icon %>
<% end %>
<% end %>
<% end %>