<% # encoding: utf-8 # # Redmine plugin for Document Management System "Features" # # Copyright © 2011-20 Karel Pičman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. %> <%= check_box_tag('ids[]', "#{name}-#{id}", false, :id => "file_#{id}") %> <% if DmsfFolder.is_column_on?('id') %> <%= file.id %> <% end %> <% if DmsfFolder.is_column_on?('title') %> <%= content_tag(:span, h(title), :title => h(file.last_revision.try(:tooltip)), :class => "icon icon-file #{DmsfHelper.filetype_css(file.name)}") %>
<%= h(link ? link.path : file.display_name) %>
<% end %> <% if DmsfFolder.is_column_on?('extension') %> <%= $1 if file.last_revision.disk_filename =~ /\.(.+)$/ %> <% end %> <% if DmsfFolder.is_column_on?('size') %> <%= number_to_human_size(file.last_revision.size) %> <% end %> <% if DmsfFolder.is_column_on?('modified') %> <%= format_time(file.last_revision.updated_at) %> <% end %> <% if DmsfFolder.is_column_on?('version') %> <%= file.last_revision.version %> <% end %> <% if DmsfFolder.is_column_on?('workflow') %> <%= file.last_revision.workflow_str(false) %> <% end %> <% if DmsfFolder.is_column_on?('author') %> <%= h(file.last_revision.user) %> <% end %> <% CustomField.where(type: 'DmsfFileRevisionCustomField').order(:position).each do |c| %> <% if DmsfFolder.is_column_on?(c.name) %> <%= show_value file.custom_value(c) %> <% end %> <% end %> <% if @file_manipulation_allowed %> <%= link_to('', link ? restore_dmsf_link_path(:id => link) : restore_dmsf_file_path(:id => file), :title => l(:title_restore), :class => 'icon-only icon-cancel') %> <% end %> <% if @file_delete_allowed %> <%= link_to('', link ? dmsf_link_path(:id => link, :commit => 'yes') : dmsf_file_path(:id => file, :commit => 'yes'), :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:title_delete), :class => 'icon-only icon-del') %> <% end %> 1 <%= file.last_revision.size %> <%= file.last_revision.updated_at.to_i %> <%= file.last_revision.iversion %> <%= clear_title(title) %>