<%= generate_breadcrumb %>

<% if !@upload_item.is_trash && @all_uploads && @all_uploads.count > 1 %> <%= link_to "javascript:void(0)", class: 'delete_file', data: { "tmp-confirm"=> "Are you sure you want to delete `#{URI.decode(@relative_path) + ' - Version ' + @active_version.to_s}`?", "link"=> admin_file_manager_path(@upload_item.id, :type=> 'upload'), "version"=> @active_version } do %> <%= fa_icon 'trash' %> <%= t("file_manager.delete") %> <% end %> <% end %> <%= link_to "/xhr/file_manager_download?id=#{@upload_item.id}", class: 'download' do %> <%= fa_icon 'download' %> Download <% end %> <% if !@upload_item.is_trash %> <% if !@is_img && !@too_big && !@unknown_encoding %> <%= link_to "javascript:void(0)", class: 'edit' do %> <%= fa_icon 'edit' %> Edit <% end %> <%= link_to "javascript:void(0)", class: 'save hide', data: {id: @upload_item.id.to_s} do %> <%= fa_icon 'save' %> Save <% end %> <% end %>
<% end %>
<% if @all_uploads && @all_uploads.count > 1 %> <% end %>
<% if @is_img %>
<% elsif File.extname(@upload_item.path) == '.pdf' %>