ensl.org/app/views/data_files/_list.html.erb
Luke Barratt 5cd2d098a0 Completed restyling:
- Bans
- Articles
- Forums
- Users

Further styling improvements to form elements
2014-04-20 02:29:52 +01:00

23 lines
582 B
Text

<table class="striped files-list">
<tr>
<th>Name</th>
<th>Path</th>
<th>Size</th>
<th>Actions</th>
</tr>
<% files.each do |file| %>
<tr>
<td><%= namelink file %></td>
<td><%= h file.url %></td>
<td><%= file.size_s %></td>
<td>
<% if file.can_update? cuser %>
<%= link_to icon('pencil'), edit_data_file_path(file) %>
<% end; if file.can_destroy? cuser %>
<%= link_to icon('times'), file, confirm: 'Are you sure?', method: :delete %>
<% end %>
</td>
</tr>
<% end %>
</table>