diff options
Diffstat (limited to 'app/views/assets/index.html.erb')
| -rw-r--r-- | app/views/assets/index.html.erb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb new file mode 100644 index 00000000..c9be684f --- /dev/null +++ b/app/views/assets/index.html.erb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | <% content_for :subnavigation do %> | ||
| 2 | <%= link_to 'New asset', new_asset_path %> | ||
| 3 | <% end %> | ||
| 4 | |||
| 5 | |||
| 6 | <table> | ||
| 7 | <tr> | ||
| 8 | </tr> | ||
| 9 | |||
| 10 | <% @assets.each do |asset| %> | ||
| 11 | <tr> | ||
| 12 | <td><%= image_tag asset.upload.url(:thumb) %></td> | ||
| 13 | <td><%= link_to asset.name, asset.upload.url %></td> | ||
| 14 | <td><%= asset.upload.content_type %></td> | ||
| 15 | <td><%= link_to 'Show', asset %></td> | ||
| 16 | <td><%= link_to 'Edit', edit_asset_path(asset) %></td> | ||
| 17 | <td><%= link_to 'Destroy', asset, :confirm => 'Are you sure?', :method => :delete %></td> | ||
| 18 | </tr> | ||
| 19 | <% end %> | ||
| 20 | </table> \ No newline at end of file | ||
