stuff
This commit is contained in:
@@ -4,12 +4,6 @@
|
||||
<% if post.approver %>
|
||||
<li>Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %></li>
|
||||
<% end %>
|
||||
<% if post.is_flagged? %>
|
||||
<li>Flagged: <%= post_flag_reason(post) %></li>
|
||||
<% end %>
|
||||
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
|
||||
<li>Appealed: <%= post_appeal_reason(post) %></li>
|
||||
<% end %>
|
||||
<li>
|
||||
Size: <%= number_to_human_size(post.file_size) %>
|
||||
<% if post.is_image? %>
|
||||
@@ -27,7 +21,7 @@
|
||||
<% end %>
|
||||
|
||||
<% if post.is_flagged? %>
|
||||
<abbr title="Unapproved">U</abbr>
|
||||
<abbr title="Flagged">F</abbr>
|
||||
<% end %>
|
||||
|
||||
<% if !post.is_pending? && !post.is_deleted? %>
|
||||
|
||||
13
app/views/posts/partials/show/_notices.html.erb
Normal file
13
app/views/posts/partials/show/_notices.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<% if post.is_flagged? %>
|
||||
<div class="ui-corner-all ui-state-error notice">
|
||||
<span class="ui-icon ui-icon-alert"></span>
|
||||
This post has been flagged for deletion: <%= post_flag_reasons(post) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if post.is_deleted? && post.appeals.any? %>
|
||||
<div class="ui-corner-all ui-state-highlight notice">
|
||||
<span class="ui-icon ui-icon-info"></span>
|
||||
This post has been appealed: <%= post_appeal_reasons(post) %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -31,6 +31,8 @@
|
||||
|
||||
<section id="content">
|
||||
<h1>Post</h1>
|
||||
|
||||
<%= render :partial => "posts/partials/show/notices", :locals => {:post => @post} %>
|
||||
|
||||
<section id="image">
|
||||
<h2>Image</h2>
|
||||
|
||||
Reference in New Issue
Block a user