#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -20,25 +20,25 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%>
-| <%= check_box_tag(name, id, false,
+ | <%= check_box_tag(name, id, false,
:title => l(:title_check_for_restore_or_delete), :id => "subfolder_#{id}") %> |
<%= content_tag(:span, h(title),
:title => h(title),
:class => 'icon icon-folder') %>
<% if link %>
- <%= link.path %>
+ <%= link.path %>
<% else %>
- [<%= subfolder.items %>]
+ [<%= subfolder.items %>]
<% end %>
|
- |
+ |
<%= format_time(subfolder.modified) if subfolder %>
|
- |
- |
-<%= h(subfolder.user) %> |
+ |
+ |
+<%= h(subfolder.user) %> |
<% if @folder_manipulation_allowed %>
<%= link_to(image_tag('restore.png', :plugin => 'redmine_dmsf'),
@@ -50,7 +50,7 @@
:title => l(:title_delete)) %>
<% end %>
|
-0 |
-0 |
-<%= subfolder.modified.to_i if subfolder %> |
-0 |
\ No newline at end of file
+0 |
+0 |
+<%= subfolder.modified.to_i if subfolder %> |
+0 |
\ No newline at end of file
diff --git a/app/views/dmsf/_file.html.erb b/app/views/dmsf/_file.html.erb
index e4e36679..dad536fc 100644
--- a/app/views/dmsf/_file.html.erb
+++ b/app/views/dmsf/_file.html.erb
@@ -22,7 +22,7 @@
<% wf = DmsfWorkflow.find_by_id(file.last_revision.dmsf_workflow_id) %>
-<%= check_box_tag(name, id, false,
+ | <%= check_box_tag(name, id, false,
:title => l(:title_check_for_zip_download_or_email), :id => "file_#{id}") %> |
<% file_view_url = url_for({:controller => :dmsf_files, :action => 'view', :id => file}) %>
@@ -32,9 +32,9 @@
:class => "icon icon-file #{DmsfHelper.filetype_css(file.name)}",
:title => l(:title_title_version_version_download, :title => h(file.title), :version => file.version),
'data-downloadurl' => "#{file.last_revision.detect_content_type}:#{h(file.name)}:#{file_view_url}") %>
- <%= h(link ? link.path : file.display_name) %>
+ <%= h(link ? link.path : file.display_name) %>
|
-<%= number_to_human_size(file.last_revision.size) %> |
+<%= number_to_human_size(file.last_revision.size) %> |
<%= format_time(file.last_revision.updated_at) %>
<% if file.locked_for_user? %>
@@ -51,8 +51,8 @@
:title => l(:title_locked_by_you)) %>
<% end %>
|
-<%= file.last_revision.version %> |
-
+ | <%= file.last_revision.version %> |
+
<% if wf && @file_approval_allowed %>
<%= link_to(
file.last_revision.workflow_str(false),
@@ -66,7 +66,7 @@
<%= file.last_revision.workflow_str(false) %>
<% end %>
|
-<%= h(file.last_revision.user) %> |
+<%= h(file.last_revision.user) %> |
<% if @file_manipulation_allowed %>
<%= link_to(image_tag('filedetails.png', :plugin => 'redmine_dmsf'),
@@ -160,7 +160,7 @@
title => l(:label_dmsf_wokflow_action_start)) %>
<% end %>
<% when DmsfWorkflow::STATE_REJECTED %>
- <%= content_tag(:span, image_tag('assigned.png', :plugin => 'redmine_dmsf'),
+ <%= content_tag(:span, image_tag('rejected.png', :plugin => 'redmine_dmsf'),
:title => l(:title_rejected)) %>
<% else %>
<% if @workflows_available && !file.locked_for_user? %>
@@ -174,7 +174,7 @@
<% end %>
<% end %>
|
-1 |
-<%= file.last_revision.size %> |
-<%= file.last_revision.updated_at.to_i %> |
-<%= file.last_revision.iversion %> |
\ No newline at end of file
+1 |
+<%= file.last_revision.size %> |
+<%= file.last_revision.updated_at.to_i %> |
+<%= file.last_revision.iversion %> |
\ No newline at end of file
diff --git a/app/views/dmsf/_file_trash.html.erb b/app/views/dmsf/_file_trash.html.erb
index 3a7f2d41..ad10954a 100644
--- a/app/views/dmsf/_file_trash.html.erb
+++ b/app/views/dmsf/_file_trash.html.erb
@@ -20,23 +20,23 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%>
-<%= check_box_tag(name, id, false,
+ | <%= check_box_tag(name, id, false,
:title => l(:title_check_for_restore_or_delete), :id => "file_#{id}") %> |
<%= content_tag(:span, h(title),
:title => h(title),
:class => "icon icon-file #{DmsfHelper.filetype_css(file.name)}") %>
- <%= h(link ? link.path : file.display_name) %>
+ <%= h(link ? link.path : file.display_name) %>
|
-<%= number_to_human_size(file.last_revision.size) %> |
+<%= number_to_human_size(file.last_revision.size) %> |
<%= format_time(file.last_revision.updated_at) %>
|
-<%= file.last_revision.version %> |
-
+ | <%= file.last_revision.version %> |
+
<%= file.last_revision.workflow_str(false) %>
|
-<%= h(file.last_revision.user) %> |
+<%= h(file.last_revision.user) %> |
<% if @file_manipulation_allowed %>
<% if link %>
@@ -60,7 +60,7 @@
<% end %>
<% end %>
|
-1 |
-<%= file.last_revision.size %> |
-<%= file.last_revision.updated_at.to_i %> |
-<%= file.last_revision.iversion %> |
\ No newline at end of file
+1 |
+<%= file.last_revision.size %> |
+<%= file.last_revision.updated_at.to_i %> |
+<%= file.last_revision.iversion %> |
\ No newline at end of file
diff --git a/app/views/dmsf/_url.html.erb b/app/views/dmsf/_url.html.erb
index 921a51d6..6e9a1685 100644
--- a/app/views/dmsf/_url.html.erb
+++ b/app/views/dmsf/_url.html.erb
@@ -20,21 +20,21 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%>
- |
+ |
<%= link_to(h(title),
link.external_url,
:target => '_blank',
- :class => 'icon icon-link') %>
-
+ :class => 'icon dmsf_icon-link') %>
+
<%= link.external_url %>
|
- |
+ |
<%= format_time(link.updated_at) %> |
- |
- |
-<%= h(link.user) %> |
+ |
+ |
+<%= h(link.user) %> |
@@ -49,7 +49,7 @@
<% end %>
|
-1 |
- |
-link.updated_at.to_i |
- |
\ No newline at end of file
+1 |
+ |
+link.updated_at.to_i |
+ |
\ No newline at end of file
diff --git a/app/views/dmsf/_url_trash.html.erb b/app/views/dmsf/_url_trash.html.erb
index 02cab0a8..b89ca4f1 100644
--- a/app/views/dmsf/_url_trash.html.erb
+++ b/app/views/dmsf/_url_trash.html.erb
@@ -20,20 +20,20 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%>
-<%= check_box_tag(name, id, false,
+ | <%= check_box_tag(name, id, false,
:title => l(:title_check_for_restore_or_delete)) %> |
<%= link_to(h(title),
link.external_url,
- :target => "_blank",
- :class => 'icon icon-link') %>
- <%= link.external_url %>
+ :target => '_blank',
+ :class => 'icon dmsf_icon-link') %>
+ <%= link.external_url %>
|
- |
+ |
<%= format_time(link.updated_at) %> |
- |
- |
-<%= h(link.user) %> |
+ |
+ |
+<%= h(link.user) %> |
<% if @file_manipulation_allowed %>
<%= link_to(image_tag('restore.png', :plugin => 'redmine_dmsf'),
@@ -46,7 +46,7 @@
:title => l(:title_delete)) %>
<% end %>
|
-1 |
- |
-link.updated_at.to_i |
- |
\ No newline at end of file
+1 |
+ |
+link.updated_at.to_i |
+ |
\ No newline at end of file
diff --git a/app/views/dmsf/edit.html.erb b/app/views/dmsf/edit.html.erb
index f1e96e49..eb3fbb44 100644
--- a/app/views/dmsf/edit.html.erb
+++ b/app/views/dmsf/edit.html.erb
@@ -30,26 +30,26 @@
<% unless @folder.locked? %>
<%= link_to(l(:button_lock),
lock_dmsf_path(:id => @project, :folder_id => @folder),
- :title => l(:title_lock_file), :class => 'icon icon-dmsf-lock') %>
+ :title => l(:title_lock_file), :class => 'icon dmsf_icon-lock') %>
<% else %>
<%= link_to_if(@folder.unlockable?, l(:button_unlock),
unlock_dmsf_path(:id => @project, :folder_id => @folder),
- :title => l(:title_unlock_file), :class => 'icon icon-dmsf-unlock')%>
+ :title => l(:title_unlock_file), :class => 'icon dmsf_icon-unlock')%>
<% end %>
<% if @folder.notification %>
<%= link_to(l(:label_notifications_off),
notify_deactivate_dmsf_path(:id => @project, :folder_id => @folder),
:title => l(:title_notifications_active_deactivate),
- :class => 'icon icon-notification-on') %>
+ :class => 'icon dmsf_icon-notification-on') %>
<% else %>
<%= link_to(l(:label_notifications_on),
notify_activate_dmsf_path(:id => @project, :folder_id => @folder),
:title => l(:title_notifications_not_active_activate),
- :class => 'icon icon-notification-off') %>
+ :class => 'icon dmsf_icon-notification-off') %>
<% end %>
<%= link_to(l(:label_link_to),
new_dmsf_link_path(:project_id => @project.id, :dmsf_folder_id => @folder.id, :type => 'link_to'),
- :title => l(:title_create_link), :class => 'icon icon-link') %>
+ :title => l(:title_create_link), :class => 'icon dmsf_icon-link') %>
<%= link_to(l(:button_copy), copy_folder_path(:id => @folder),
:title => l(:title_copy), :class => 'icon icon-copy') %>
<%= link_to(l(:button_delete),
@@ -59,7 +59,7 @@
<% elsif @force_file_unlock_allowed %>
<%= link_to_if(@folder.unlockable?, l(:button_unlock),
unlock_dmsf_path(:id => @project, :folder_id => @folder),
- :title => l(:title_unlock_file), :class => 'icon icon-dmsf-unlock')%>
+ :title => l(:title_unlock_file), :class => 'icon dmsf_icon-unlock')%>
<% end %>
<% end %>
diff --git a/app/views/dmsf/edit_root.html.erb b/app/views/dmsf/edit_root.html.erb
index e76f87c8..7c33f1aa 100644
--- a/app/views/dmsf/edit_root.html.erb
+++ b/app/views/dmsf/edit_root.html.erb
@@ -30,12 +30,12 @@
<%= link_to(l(:label_notifications_off),
notify_deactivate_dmsf_path(:id => @project),
:title => l(:title_notifications_active_deactivate),
- :class => 'icon icon-notification-on') %>
+ :class => 'icon dmsf_icon-notification-on') %>
<% else %>
<%= link_to(l(:label_notifications_on),
notify_activate_dmsf_path(:id => @project),
:title => l(:title_notifications_active_deactivate),
- :class => 'icon icon-notification-off') %>
+ :class => 'icon dmsf_icon-notification-off') %>
<% end %>
<% end %>
diff --git a/app/views/dmsf/show.html.erb b/app/views/dmsf/show.html.erb
index 4a8c91ba..a1c7ab41 100644
--- a/app/views/dmsf/show.html.erb
+++ b/app/views/dmsf/show.html.erb
@@ -39,28 +39,28 @@
<% if @folder.locked? %>
<%= link_to_if(@folder.unlockable?, l(:button_unlock),
unlock_dmsf_path(:id => @project, :folder_id => @folder, :current => request.url),
- :title => l(:title_unlock_folder), :class => 'icon icon-dmsf-unlock') %>
+ :title => l(:title_unlock_folder), :class => 'icon dmsf_icon-unlock') %>
<% else %>
<%= link_to(l(:button_lock),
lock_dmsf_path(:id => @project, :folder_id => @folder, :current => request.url),
- :title => l(:title_lock_folder), :class => 'icon icon-dmsf-lock') %>
+ :title => l(:title_lock_folder), :class => 'icon dmsf_icon-lock') %>
<% end %>
<% end %>
<% if !@locked_for_user && ((@folder && @folder.notification) || (!@folder && @project.dmsf_notification)) %>
<%= link_to(l(:label_notifications_off),
notify_deactivate_dmsf_path(:id => @project, :folder_id => @folder),
:title => l(:title_notifications_active_deactivate),
- :class => 'icon icon-notification-on') %>
+ :class => 'icon dmsf_icon-notification-on') %>
<% else %>
<%= link_to(l(:label_notifications_on),
notify_activate_dmsf_path(:id => @project, :folder_id => @folder),
:title => l(:title_notifications_not_active_activate),
- :class => 'icon icon-notification-off') %>
+ :class => 'icon dmsf_icon-notification-off') %>
<% end %>
<% if @file_manipulation_allowed && !@locked_for_user %>
<%= link_to(l(:label_link_from),
new_dmsf_link_path(:project_id => @project.id, :dmsf_folder_id => @folder ? @folder.id : @folder, :type => 'link_from'),
- :title => l(:title_create_link), :class => 'icon icon-link') %>
+ :title => l(:title_create_link), :class => 'icon dmsf_icon-link') %>
<% end %>
<%= link_to(l(:link_create_folder),
new_dmsf_path(:id => @project, :parent_id => @folder),
@@ -85,7 +85,7 @@
<%= form_tag({:action => :entries_operation, :id => @project, :folder_id => @folder}, :method => :post,
:class => 'dmfs_entries', :id => 'entries_form') do %>
<%= hidden_field_tag('action') %>
-
+
<%= submit_tag(l(:button_download), :title => l(:title_download_checked), :name => 'download_entries') if @file_view_allowed %>
<%= submit_tag(l(:field_mail), :title => l(:title_send_checked_by_email), :name => 'email_entries') if (@file_view_allowed && User.current.allowed_to?(:email_documents, @project)) %>
<% if @file_delete_allowed%>
@@ -94,30 +94,30 @@
<% values = @folder ? @folder.custom_field_values : @parent ? @parent.custom_field_values : DmsfFolder.new(:project => @project).custom_field_values %>
<% unless values.empty? %>
-
+
<%= custom_field_tag_with_label(
:dmsf_folder,
CustomValue.new(:custom_field_id => params[:custom_field_id].present? ? params[:custom_field_id] : values.first.custom_field_id, :value => params[:custom_value])) %>
<% end %>