post index noe works
This commit is contained in:
@@ -1,24 +1,32 @@
|
||||
<table width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Uploader</th>
|
||||
<th>Status</th>
|
||||
<th>Date</th>
|
||||
<th>Tags</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @uploads.each do |upload| %>
|
||||
<tr>
|
||||
<td><%= link_to upload.id, upload_path(upload) %></td>
|
||||
<td><%= link_to upload.uploader.name, user_path(upload.uploader) %></td>
|
||||
<td><%= upload.presenter.status(self) %></td>
|
||||
<td><%= upload.created_at %></td>
|
||||
<td><%= upload.tag_string %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="c-uploads">
|
||||
<div id="a-index">
|
||||
<table width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Uploader</th>
|
||||
<th>Status</th>
|
||||
<th>Date</th>
|
||||
<th>Tags</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @uploads.each do |upload| %>
|
||||
<tr>
|
||||
<td><%= link_to upload.id, upload_path(upload) %></td>
|
||||
<td><%= link_to upload.uploader.name, user_path(upload.uploader) %></td>
|
||||
<td><%= upload.presenter.status(self) %></td>
|
||||
<td><%= upload.created_at %></td>
|
||||
<td><%= upload.tag_string %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="paginator">
|
||||
<%= sequential_paginator(@uploads) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render :partial => "posts/partials/common/secondary_links" %>
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<p>
|
||||
You can <%= link_to "upload another file", new_upload_path %> or <%= link_to "view your current uploads", uploads_path %>.
|
||||
<% if CurrentUser.user.is_moderator? %>
|
||||
<% if CurrentUser.user.is_moderator? && @upload.is_pending? %>
|
||||
<%= link_to "Force update", upload_path(@upload, :format => "js"), :remote => true, :method => :put %>.
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user