This commit is contained in:
albert
2012-01-06 18:37:08 -05:00
parent 720ebdc877
commit fd300ad346
4 changed files with 18 additions and 16 deletions

View File

@@ -12,23 +12,23 @@
</li>
<li>Source: <%= post_source_tag(post) %></li>
<li>Rating: <%= post.pretty_rating %></li>
<li>Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span> (vote <%= link_to "up", post_votes_path(:post_id => post.id, :score => "up"), :remote => true, :method => :post %>/<%= link_to "down", post_votes_path(:post_id => post.id, :score => "down"), :remote => true, :method => :post %>)</li>
<li>Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span> <% if CurrentUser.is_privileged? %>(vote <%= link_to "up", post_votes_path(:post_id => post.id, :score => "up"), :remote => true, :method => :post %>/<%= link_to "down", post_votes_path(:post_id => post.id, :score => "down"), :remote => true, :method => :post %>)<% end %></li>
<li>
Status:
<% if post.is_pending? %>
<abbr title="Pending">P</abbr>
Pending
<% end %>
<% if post.is_deleted? %>
<abbr title="Deleted">D</abbr>
Deleted
<% end %>
<% if post.is_flagged? %>
<abbr title="Flagged">F</abbr>
Flagged
<% end %>
<% if !post.is_pending? && !post.is_deleted? %>
<abbr title="Active">A</abbr>
Active
<% end %>
</li>
</ul>