views: factor out FontAwesome icons.
Factor out FontAwesome icons into a set of helpers. This is so that it's easier to keep track of which icons we're using and easier to change icons globally.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<%= link_to recommended_posts_path(search: { post_id: post.id }), class: "more-recommended-posts", "data-post-id": post.id do %>
|
||||
<%= post.fav_count %>
|
||||
|
||||
<i class="far fa-heart fa-xs"></i>
|
||||
<%= favorite_icon(class: "fa-xs") %>
|
||||
|
||||
<br>more »
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user