31 lines
946 B
Plaintext
31 lines
946 B
Plaintext
<div class="header">
|
|
<div class="row">
|
|
<span class="info">
|
|
<strong>Date</strong>
|
|
<%= compact_time(post.created_at) %>
|
|
</span>
|
|
<span class="info">
|
|
<strong>User</strong>
|
|
<%= link_to_user(post.uploader) %>
|
|
</span>
|
|
<span class="info">
|
|
<strong>Rating</strong>
|
|
<%= post.rating %>
|
|
</span>
|
|
<span class="info">
|
|
<strong>Score</strong>
|
|
<span>
|
|
<span id="score-for-post-<%= post.id %>"><%= post.score %></span>
|
|
<% if CurrentUser.is_voter? %>
|
|
(vote <%= link_to("up", post_votes_path(:score => "up", :post_id => post.id), :remote => true, :method => :post) %>/<%= link_to("down", 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(self) %>
|
|
</div>
|
|
</div>
|
|
|