diff --git a/app/views/projects/index/_project_actions_dropdown.html.erb b/app/views/projects/index/_project_actions_dropdown.html.erb index d4a8565b4..e6fc9d3b1 100644 --- a/app/views/projects/index/_project_actions_dropdown.html.erb +++ b/app/views/projects/index/_project_actions_dropdown.html.erb @@ -1,72 +1,70 @@ <% cache [current_user, project] do %> <% active = !project.archived %> - <% if (active && (can_manage_project?(project) || can_archive_project?(project))) || (!active && can_restore_project?(project)) %> -
+ + <% if project.active? && can_manage_project?(project) %> +-
+
+
+ <%= t('projects.index.edit_option') %>
+
+
<% end %>
-
- - <% if active && can_manage_project?(project) %> --
-
-
- <%= t('projects.index.edit_option') %>
-
-
- <% end %>
-
- <% if active && can_archive_project?(project) %>
- -
- ">
-
- <%= t ('projects.index.archive_option') %>
-
-
- <% elsif !active %>
- -
-
-
- <%= t ('projects.index.restore_option') %>
-
-
- <% end %>
-
+
+ <% if project.active? && can_archive_project?(project) %>
-
-
-
- <%= t('projects.index.comments_option', comments_count: project.comment_count) %>
-
-
+ data-submit-form="<%= project_form.options[:html][:id] %>"
+ data-confirm-form="<%= t("projects.index.archive_confirm") %>">
+
+ <%= t ('projects.index.archive_option') %>
+
-
+ <% elsif project.archived? && can_restore_project?(project) %>
-
-
-
- <%= t('projects.index.activities_option') %>
+
+
+ <%= t ('projects.index.restore_option') %>
-
-