12345678910111213141516171819202122232425262728293031 |
- <p id="notice"><%= notice %></p>
- <p>
- <strong>Title:</strong>
- <%= @upload.title %>
- </p>
- <p>
- <strong>File:</strong><br>
- <% if @upload.get_extension == 'jpg' || @upload.get_extension == 'png' %>
- <%= image_tag @upload.file.to_s if @upload.file != nil %>
- <% else %>
- <%= link_to @upload.title, @upload.file.to_s %>
- <% end %>
- </p>
- <p>
- <strong>File Type:</strong>
- <%= @upload.file.file.content_type %>
- </p>
- <p>
- <strong>Desciption:</strong>
- <%= @upload.description %>
- </p>
- <%= link_to 'Edit', edit_upload_path(@upload) %> |
- <%= link_to 'Destroy', @upload, method: :delete, data: { confirm: 'Are you sure?' } %> |
- <%= link_to 'Back', admin_files_path %>
|