|
<div class="row">
<%= render 'admin_panel/sidebar_nav' %>
<div class="span9">
<div class="page-header">
<h1>Blog Posts <%= link_to 'Upload File', new_upload_path, :class => 'btn btn-primary btn-mini' %></h1>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>Title</th>
<th>File</th>
<th>Desciption</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<% @uploads.each do |upload| %>
<tr>
<td><%= upload.title %></td>
<td><%= upload.file.to_s %></td>
<td><%= upload.desciption %></td>
<td><%= link_to 'Show', upload %></td>
<td><%= link_to 'Edit', edit_upload_path(upload) %></td>
<td><%= link_to 'Destroy', upload, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
|