<% if (active && can_manage_project?(project)) || (!active && can_restore_project?(project)) %>
<% project_form = nil %>
<%= form_for project, format: :json, method: :put, remote: true do |f| %>
<% project_form = f %>
<%= f.hidden_field :archived, value: active %>
<% end %>
<% end %>
<% if active %>
<%= link_to project.name, project_path(project), id: "#{project.id}-project-canvas-link" %>
<% else %>
<%= project.name %>
<% end %>
<% if project.hidden? %>
">
<%= t("projects.index.hidden") %>
<% else %>
">
<%= t("projects.index.visible") %>
<% end %>
<%= t('projects.index.start_date') %>
<%= l(project.created_at, format: :full_date) %>