1 <h1>Listing system_pictures</h1>
3 <% if admin_signed_in? -%>
4 <%= form_tag( {:action => "create"} , { :multipart => true }) do %>
5 <label for="file">File to Upload</label> <%= file_field_tag "system_picture[file]" %>
6 <%= submit_tag 'upload' -%>
19 <% @system_pictures.each do |system_picture| %>
21 <td><%= system_picture.ext %></td>
22 <td><%= system_picture.width %></td>
23 <td><%= system_picture.height %></td>
24 <td><%= system_picture.filesize %></td>
25 <td><%= link_to 'Show', system_picture %></td>
27 <% if admin_signed_in? -%>
28 <%= link_to 'Destroy', system_picture, confirm: 'Are you sure?', method: :delete %>