<% 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 %>
-
<%= t('projects.index.comments_option', comments_count: project.comment_count) %>
-
<%= t('projects.index.activities_option') %>