% html_title("DMSF") %>
| <%= sort_header_tag("title", :caption => "Title") %> <%= sort_header_tag("size", :caption => "Size") %> <%= sort_header_tag("modified", :caption => "Modified") %> <%= sort_header_tag("version", :caption => "Ver.") %> <%= sort_header_tag("author", :caption => "Author") %> | ||||||
|---|---|---|---|---|---|---|
| <%= check_box_tag("subfolders[]", subfolder.id, false, :title => "Check for multi download or email") %> | <%= link_to(h(subfolder.name), {:action => "index", :folder_id => subfolder}, :class => "icon icon-folder") %> | - | - | - | - |
<% if User.current.allowed_to?(:folder_manipulation, @project) %>
<%= link_to(image_tag("delete.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_detail", :action => "delete_folder", :id => @project,
:folder_id => @folder, :delete_folder_id => subfolder}, :class => "delete-link",
:title => "Delete") %>
<% end %>
<% if User.current.allowed_to?(:file_approval, @project) %>
<% if subfolder.notification %>
<%= link_to(image_tag("notify.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_state", :action => "folder_notify_deactivate", :id => @project,
:folder_id => subfolder}, :title => "Notifications active: Deactivate") %>
<% else %>
<%= link_to(image_tag("notifynot.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_state", :action => "folder_notify_activate", :id => @project,
:folder_id => subfolder}, :title => "Notifications not active: Activate") %>
<% end %>
<% end %>
|
| <%= check_box_tag("files[]", file.id, false, :title => "Check for zip download or email") %> |
<%= link_to(h(file.last_revision.display_title),
{:action => "download_file", :id => @project, :file_id => file},
:class => "icon icon-file #{Redmine::MimeType.css_class_of(file.name)}",
:title => "#{h(file.last_revision.title)} version #{file.last_revision.version} download") %>
(<%= h(file.display_name) %>) |
<%= number_to_human_size(file.last_revision.size) unless file.last_revision.nil? %> | <%= file.last_revision.updated_at.strftime("%Y-%m-%d %H:%M") unless file.last_revision.nil? %> <% if file.locked_for_user? %> <%= link_to(image_tag("locked.png", :plugin => "redmine_dmsf"), {:controller => "users", :action => "show", :id => file.locks[0].user }, :title => "Locked by " + file.locks[0].user.to_s) %> <% else if file.locked? %> <%= image_tag("lockedbycurrent.png", :title => "Locked by you", :plugin => "redmine_dmsf") %> <% end %> <% end %> | <%= file.last_revision.version unless file.last_revision.nil? %> <% case file.last_revision.workflow when 1 then %><%= image_tag("waitingforapproval.png", :title => "Waiting for Approval", :plugin => "redmine_dmsf") %> <% when 2 then %><%= image_tag("approved.png", :title => "Approved", :plugin => "redmine_dmsf") %> <% end %> | <%= h(file.last_revision.user) unless file.last_revision.nil? %> |
<%= link_to(image_tag("filedetails.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_detail", :action => "file_detail", :id => @project, :file_id => file },
:title => "#{h(file.last_revision.title)} details") %>
<% unless file.locked_for_user? && !User.current.allowed_to?(:force_file_unlock, @project)%>
<% if file.locked? %>
<%= link_to(image_tag("unlock.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_state", :action => "unlock_file", :id => @project, :file_id => file },
:title => "Unlock to allow changes for other members") %>
<% else %>
<%= link_to(image_tag("lock.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_state", :action => "lock_file", :id => @project, :file_id => file },
:title => "Lock to prevent changes for other members") %>
<% end %>
<% end %>
<% if User.current.allowed_to?(:file_manipulation, @project) %>
<%= link_to(image_tag("delete.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_detail", :action => "delete_file", :id => @project,
:file_id => file}, :class => "delete-link", :title => "Delete") %>
<% end %>
<% if User.current.allowed_to?(:file_approval, @project) %>
<% if file.notification %>
<%= link_to(image_tag("notify.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_state", :action => "file_notify_deactivate", :id => @project,
:file_id => file}, :title => "Notifications active: Deactivate") %>
<% else %>
<%= link_to(image_tag("notifynot.png", :plugin => "redmine_dmsf"),
{:controller => "dmsf_state", :action => "file_notify_activate", :id => @project,
:file_id => file}, :title => "Notifications not active: Activate") %>
<% end %>
<% end %>
|
<%= file_field_tag("uploaded_files[1]", :size => 30, :id => nil) %>
<%= link_to(l(:label_add_another_file), "#", :onclick => "dmsfAddFileField(); return false;" ) %>
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)