diff --git a/app/views/dmsf/_custom_fields.html.erb b/app/views/dmsf/_custom_fields.html.erb
index 7b709470..6e5ab581 100644
--- a/app/views/dmsf/_custom_fields.html.erb
+++ b/app/views/dmsf/_custom_fields.html.erb
@@ -24,10 +24,12 @@
<% if object %>
<% object.show_custom_field_values.each do |custom_value| %>
-
- <%= label_tag('', h(custom_value.custom_field.name)) %>
- <%= show_value custom_value %>
-
+
+ <%= content_tag :div, h(custom_value.custom_field.name), :class => 'label' %>
+
+ <%= show_value custom_value %>
+
+
<% end %>
<% end %>
\ No newline at end of file
diff --git a/app/views/dmsf_files/show.html.erb b/app/views/dmsf_files/show.html.erb
index a90a5115..ba418661 100644
--- a/app/views/dmsf_files/show.html.erb
+++ b/app/views/dmsf_files/show.html.erb
@@ -26,36 +26,38 @@
<% if User.current.allowed_to?(:file_manipulation, @project) %>
- <% if !@file.locked? %>
- <%= link_to(l(:button_lock), lock_dmsf_files_path(:id => @file),
- :title => l(:title_lock_file), :class => 'icon icon-lock') %>
+ <% unless @file.locked_for_user? %>
+ <% unless @file.locked? %>
+ <%= link_to(l(:button_lock), lock_dmsf_files_path(:id => @file),
+ :title => l(:title_lock_file), :class => 'icon dmsf_icon-lock') %>
+ <% else %>
+ <%= link_to_if(@file.unlockable?, l(:button_unlock), unlock_dmsf_files_path(:id => @file),
+ :title => l(:title_unlock_file), :class => 'icon dmsf_icon-unlock') %>
+ <% end %>
<% if @file.notification %>
<%= link_to(l(:label_notifications_off),
notify_deactivate_dmsf_files_path(:id => @file),
:title => l(:title_notifications_active_deactivate),
- :class => 'icon icon-email') %>
+ :class => 'icon dmsf_icon-notification-on') %>
<% else %>
<%= link_to(l(:label_notifications_on),
notify_activate_dmsf_files_path(:id => @file),
:title => l(:title_notifications_not_active_activate),
- :class => 'icon icon-email-add') %>
+ :class => 'icon dmsf_icon-notification-off') %>
+ <% end %>
+ <%= link_to(l(:label_link_to),
+ new_dmsf_link_path(:project_id => @project.id, :dmsf_folder_id => @file.dmsf_folder ? @file.dmsf_folder.id : nil, :dmsf_file_id => @file.id, :type => 'link_to'),
+ :title => l(:title_create_link),
+ :class => 'icon dmsf_icon-link') %>
+ <%= link_to("#{l(:button_copy)}/#{l(:button_move)}", copy_file_path(:id => @file),
+ :title => l(:title_copy), :class => 'icon icon-copy') %>
+ <%= delete_link(dmsf_file_path(:id => @file, :details => true)) if @file_delete_allowed %>
+ <% else %>
+ <% if User.current.allowed_to?(:force_file_unlock, @project) %>
+ <%= link_to_if(@file.unlockable?, l(:button_unlock), unlock_dmsf_files_path(:id => @file),
+ :title => l(:title_unlock_file), :class => 'icon dmsf_icon-unlock')%>
<% end %>
- <% elsif (!@file.locked_for_user? || User.current.allowed_to?(:force_file_unlock, @project)) %>
- <%= link_to_if(@file.unlockable?, l(:button_unlock), unlock_dmsf_files_path(:id => @file),
- :title => l(:title_unlock_file), :class => 'icon icon-unlock') %>
<% end %>
- <%= link_to(l(:label_link_to),
- new_dmsf_link_path(:project_id => @project.id,
- :dmsf_folder_id => @file.dmsf_folder ? @file.dmsf_folder.id : nil,
- :dmsf_file_id => @file.id,
- :type => 'link_to'),
- :title => l(:title_create_link),
- :class => 'icon icon-link') %>
- <%= link_to("#{l(:button_copy)}/#{l(:button_move)}", copy_file_path(:id => @file),
- :title => l(:title_copy), :class => 'icon icon-copy') %>
- <% if !@file.locked? && @file_delete_allowed %>
- <%= delete_link(dmsf_file_path(:id => @file, :details => true)) %>
- <% end %>
<% end %>
@@ -79,20 +81,16 @@