fixed upload->post converion process
This commit is contained in:
24
app/views/uploads/index.html.erb
Normal file
24
app/views/uploads/index.html.erb
Normal file
@@ -0,0 +1,24 @@
|
||||
<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>
|
||||
|
||||
<%= render :partial => "posts/common_secondary_nav_links" %>
|
||||
@@ -52,3 +52,5 @@
|
||||
<% content_for(:page_title) do %>
|
||||
/ Upload
|
||||
<% end %>
|
||||
|
||||
<%= render :partial => "posts/common_secondary_nav_links" %>
|
||||
|
||||
@@ -13,3 +13,7 @@
|
||||
<% else %>
|
||||
<p>An error occurred: <%= @upload.status %></p>
|
||||
<% end %>
|
||||
|
||||
<p>You can <%= link_to "upload another file", new_upload_path %> or <%= link_to "view your current uploads", uploads_path %>.</p>
|
||||
|
||||
<%= render :partial => "posts/common_secondary_nav_links" %>
|
||||
|
||||
Reference in New Issue
Block a user