mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 17:31:27 +00:00
24 lines
598 B
Text
24 lines
598 B
Text
|
<table class="data">
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Path</th>
|
||
|
<th>Size</th>
|
||
|
<th>Actions</th>
|
||
|
</tr>
|
||
|
|
||
|
<% files.each do |file| %>
|
||
|
<tr class="<%= cycle('even', 'odd') %>">
|
||
|
<td><%= namelink file %></td>
|
||
|
<td><%= h file.url %></td>
|
||
|
<td><%= file.size_s %></td>
|
||
|
<td>
|
||
|
<% if file.can_update? cuser %>
|
||
|
<%= link_to 'Edit', edit_data_file_path(file) %>
|
||
|
<% end; if file.can_destroy? cuser %>
|
||
|
<%= link_to 'Destroy', file, :confirm => 'Are you sure?', :method => :delete %>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|