redmine_dmsf/app/views/dmsf/_tree_view.erb
2017-01-10 10:01:33 +01:00

70 lines
2.7 KiB
Plaintext

<%
# encoding: utf-8
#
# Redmine plugin for Document Management System "Features"
#
# Copyright (C) 2011-16 Karel Pičman <karel.picman@kontron.com>
#
# 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.
%>
<table class="display list dmsf_list" id="browser">
<thead>
<tr>
<th class="dmsf_checkbox dmsf_th">
<input id="check_all_entries" title="<%= l(:title_check_uncheck_all_for_zip_download_or_email) %>" type="checkbox" />
</th>
<% if DmsfFolder.is_column_on?('id') %>
<th class="dmsf_th">#</th>
<% end %>
<% if DmsfFolder.is_column_on?('title') %>
<th class ="dmsf_th"><%= l(:link_title) %></th>
<% end %>
<% if DmsfFolder.is_column_on?('extension') %>
<th class="dmsf_th"><%= l(:link_extension) %></th>
<% end %>
<% if DmsfFolder.is_column_on?('size') %>
<th class ="dmsf_th"><%= l(:link_size) %></th>
<% end %>
<% if DmsfFolder.is_column_on?('modified') %>
<th class ="dmsf_th"><%= l(:link_modified) %></th>
<% end %>
<% if DmsfFolder.is_column_on?('version') %>
<th title="<%= l(:label_dmsf_version) %>" class="dmsf_th"><%= l(:link_ver) %></th>
<% end %>
<% if DmsfFolder.is_column_on?('workflow') %>
<th class ="dmsf_th"><%= l(:link_workflow) %></th>
<% end %>
<% if DmsfFolder.is_column_on?('author') %>
<th class ="dmsf_th"><%= l(:link_author) %></th>
<% end %>
<% cfs = CustomField.where(:type => 'DmsfFileRevisionCustomField').order(:position) %>
<% cfs.each do |c| %>
<% if DmsfFolder.is_column_on?(c.name) %>
<th class="dmsf_th"><%= c.name %></th>
<% end %>
<% end %>
<th class ="dmsf_th"><%# controls %></th>
<th class="dmsf_invisible"><%# position %></th>
<th class="dmsf_invisible"><%# size %></th>
<th class="dmsf_invisible"><%# updated %></th>
<th class="dmsf_invisible"><%# version %></th>
</tr>
</thead>
<tbody>
<%= render(:partial => 'dmsf/dmsf_rows') %>
</tbody>
</table>