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.
31 lines
952 B
Plaintext
31 lines
952 B
Plaintext
<div class="header">
|
|
<div class="row">
|
|
<span class="info">
|
|
<strong>Date</strong>
|
|
<%= compact_time(post.created_at) %>
|
|
</span>
|
|
<span class="info">
|
|
<strong>Uploader</strong>
|
|
<%= link_to_user(post.uploader) %>
|
|
</span>
|
|
<span class="info">
|
|
<strong>Rating</strong>
|
|
<%= post.pretty_rating %>
|
|
</span>
|
|
<span class="info">
|
|
<strong>Score</strong>
|
|
<span>
|
|
<span id="score-for-post-<%= post.id %>"><%= post.score %></span>
|
|
<% if policy(PostVote).create? %>
|
|
(vote <%= link_to upvote_icon, post_post_votes_path(score: "up", post_id: post.id), remote: true, method: :post %>/<%= link_to downvote_icon, post_post_votes_path(score: "down", post_id: post.id), remote: true, method: :post %>)
|
|
<% end %>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
<div class="row list-of-tags">
|
|
<strong>Tags</strong>
|
|
<%= post.presenter.inline_tag_list_html %>
|
|
</div>
|
|
</div>
|
|
|