diff --git a/app/views/dmsf_files/show.html.erb b/app/views/dmsf_files/show.html.erb index ec375758..a05dea53 100644 --- a/app/views/dmsf_files/show.html.erb +++ b/app/views/dmsf_files/show.html.erb @@ -39,24 +39,26 @@ <%= link_to l(:button_lock), lock_dmsf_files_path(id: @file), title: l(:title_lock_file), class: 'icon icon-lock' %> <% 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' %> - <% 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' %> + <%= actions_dropdown do %> + <% 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' %> + <% 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' %> + <% 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' %> + <%= delete_link(dmsf_file_path(id: @file, details: true)) if @file_delete_allowed %> <% 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' %> - <%= delete_link(dmsf_file_path(id: @file, details: true)) if @file_delete_allowed %> <% end %> <% end %> @@ -77,28 +79,28 @@