<% if project.active? && can_manage_project?(project) %>-
<%= t('projects.index.edit_option') %>
<% end %>
<% if project.active? && can_archive_project?(project) %>
-
<%= button_to(project_path(project, format: :json),
method: :put,
remote: true,
class: 'btn btn-light',
form_class: 'project-archive-restore-form',
data: { confirm: t('projects.index.archive_confirm') },
params: { project: { archived: true } }) do %>
<%= t('projects.index.archive_option') %>
<% end %>
<% elsif project.archived? && can_restore_project?(project) %>
-
<%= button_to(project_path(project, format: :json),
method: :put,
remote: true,
class: 'btn btn-light',
form_class: 'project-archive-restore-form',
params: { project: { archived: false } }) do %>
<%= t('projects.index.restore_option') %>
<% end %>
<% end %>
<% if can_read_project?(project) %>
-
<%= link_to can_manage_project_users?(project) ? edit_access_permissions_project_path(project) : access_permissions_project_path(project),
class: 'btn btn-light',
data: { action: 'remote-modal'} do %>
<%= I18n.t('projects.index.project_members_access') %>
<% end %>
<% end %>
-
<%= t('projects.index.comments_option', comments_count: project.comment_count) %>
-
<%= t('projects.index.activities_option') %>