<% title @upload.title + ' - ' + @config.website_name %>
<div class="page-header">
  <h1>
	<%= @upload.title %>
  	<%= link_to 'Edit', edit_upload_path(@upload), class: 'btn btn-mini pull-right', style: 'margin-top: 12px; margin-left: 6px;'%> 
  	<%= link_to 'Delete', @upload, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger btn-mini pull-right', style: 'margin-top: 12px;' %>
  </h1>
</div>

<div style="text-align:center">
	<% 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 %>
</div>

 <%= @upload.description %>

<br>
<div style="text-align:center">
	<%= link_to 'Back', admin_files_path, class: 'btn btn-link' %> 
</div>