OSDN Git Service

Merge branch 'syspic'
[pettanr/pettanr.git] / app / views / system_pictures / show.html.erb
1 <p id="notice"><%= notice %></p>
2
3 <p>
4   <b>Ext:</b>
5   <%= @system_picture.ext %>
6 </p>
7
8 <p>
9   <b>Width:</b>
10   <%= @system_picture.width %>
11 </p>
12
13 <p>
14   <b>Height:</b>
15   <%= @system_picture.height %>
16 </p>
17
18 <p>
19   <b>filesize:</b>
20   <%= @system_picture.filesize %>
21 </p>
22
23 <img src="<%= @system_picture.url -%>">
24
25 <p>
26 <a href="<%= @system_picture.url %>">browse picture</a> 
27 </p>
28 <% if admin_signed_in? -%>
29 <p>
30 Replace picture
31 </p>
32   <%= form_for(@system_picture, :html => { :multipart => true }) do |f| %>
33     <label for="file">File to Upload</label> <%= f.file_field "file" %>
34     <div class="actions">
35       <%= f.submit 'replace' %>
36     </div>
37   <% end %>
38 <% end -%>
39
40 <%= link_to 'Back', system_pictures_path %>