partial fix for #262

This commit is contained in:
Toks
2013-05-20 22:23:37 -04:00
parent 11c3c6be20
commit ee63f112bb
3 changed files with 10 additions and 4 deletions

View File

@@ -1,12 +1,13 @@
<div id="c-post-appeals">
<div id="a-index">
<h1>Appeals</h1>
<table width="100%">
<table width="100%" class="striped">
<thead>
<tr>
<th>Post</th>
<th>Creator</th>
<th width="1%">Post</th>
<th width="10%">Creator</th>
<th>Reason</th>
<th width="15%">Date</th>
</tr>
</thead>
<tbody>
@@ -15,6 +16,7 @@
<td><%= PostPresenter.preview(post_appeal.post, :tags => "status:any") %></td>
<td><%= link_to_user post_appeal.creator %></td>
<td><%= format_text post_appeal.reason %></td>
<td><%= compact_time post_appeal.updated_at %></td>
</tr>
<% end %>
</tbody>

View File

@@ -6,9 +6,10 @@
<tr>
<th width="1%"></th>
<% if CurrentUser.user.is_janitor? %>
<th>Creator</th>
<th width="10%">Creator</th>
<% end %>
<th>Reason</th>
<th width="15%">Date</th>
</tr>
</thead>
<tbody>
@@ -21,6 +22,7 @@
</td>
<% end %>
<td><%= format_text post_flag.reason %></td>
<td><%= compact_time post_flag.updated_at %></td>
</tr>
<% end %>
</tbody>

View File

@@ -28,6 +28,8 @@
<li><%= fast_link_to "Tags", post_versions_path(:search => {:post_id => @post.id}) %></li>
<% end %>
<li><%= fast_link_to "Notes", note_versions_path(:search => {:post_id => @post.id}) %></li>
<li><%= fast_link_to "Flags", post_flags_path(:search => {:post_id => @post.id}) %></li>
<li><%= fast_link_to "Appeals", post_appeals_path(:search => {:post_id => @post.id}) %></li>
</ul>
</section>