Site para o estudio Velvet Design em São Paulo. http://velvetdesign.com.br

show.html.erb 675B

12345678910111213141516171819202122232425262728293031
  1. <p id="notice"><%= notice %></p>
  2. <p>
  3. <strong>Title:</strong>
  4. <%= @upload.title %>
  5. </p>
  6. <p>
  7. <strong>File:</strong><br>
  8. <% if @upload.get_extension == 'jpg' || @upload.get_extension == 'png' %>
  9. <%= image_tag @upload.file.to_s if @upload.file != nil %>
  10. <% else %>
  11. <%= link_to @upload.title, @upload.file.to_s %>
  12. <% end %>
  13. </p>
  14. <p>
  15. <strong>File Type:</strong>
  16. <%= @upload.file.file.content_type %>
  17. </p>
  18. <p>
  19. <strong>Desciption:</strong>
  20. <%= @upload.description %>
  21. </p>
  22. <%= link_to 'Edit', edit_upload_path(@upload) %> |
  23. <%= link_to 'Destroy', @upload, method: :delete, data: { confirm: 'Are you sure?' } %> |
  24. <%= link_to 'Back', admin_files_path %>