X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fviews%2Fsystem_pictures%2Findex.html.erb;h=450992ca08dffcdcba71fdf170cbc1f8e17a6b99;hb=5f4b363a10c3dd7b8fb5c4465c3586e4faece320;hp=e65bf4c8ee0ee205d350d2879118c12ee2a60456;hpb=a44aaa56716c0478fda201e7091267b7296343a7;p=pettanr%2Fpettanr.git diff --git a/app/views/system_pictures/index.html.erb b/app/views/system_pictures/index.html.erb index e65bf4c8..450992ca 100644 --- a/app/views/system_pictures/index.html.erb +++ b/app/views/system_pictures/index.html.erb @@ -1,33 +1,19 @@ -

Listing system_pictures

- -<% if admin_signed_in? -%> - <%= form_tag( {:action => "create"} , { :multipart => true }) do %> - <%= file_field_tag "system_picture[file]" %> - <%= submit_tag 'upload' -%> - <% end -%> -<% end -%> +

<%= t '.title' -%>

- - - - + + + <% @system_pictures.each do |system_picture| %> - - - + + + - - <% end %>
ExtWidthHeightfilesize <%= t_m 'SystemPicture.ext' -%><%= t_m 'SystemPicture.width' -%>x<%= t_m 'SystemPicture.height' -%><%= t_m 'SystemPicture.filesize' -%>
<%= system_picture.ext %><%= system_picture.width %><%= system_picture.height %><%= link_to tag(:img, :src => system_picture.url), system_picture.url %>(<%= link_to system_picture.id, system_picture_path(system_picture) %>)<%= h system_picture.ext %><%= system_picture.width %>x<%= system_picture.height %> <%= system_picture.filesize %><%= link_to 'Show', system_picture %> - <% if admin_signed_in? -%> - <%= link_to 'Destroy', system_picture, confirm: 'Are you sure?', method: :delete %> - <% end -%> -