<% if project.archived? %>
<%= link_to experiment_archive_project_url(project) do %>
<%= project.name %>
<% end %>
<% else %>
<%= link_to project_url(project) do %>
<%= project.name %>
<% end %>
<% end %>
<%= render partial: 'projects/index/project_actions_dropdown.html.erb', locals: { project: project, view: 'cards' } %>
<%= t('projects.index.card.start_date') %>
<%= l(project.created_at, format: :full_date) %>
<%= l(project.created_at, format: :full_with_comma) %>
<%= t('projects.index.card.visibility') %>
<% if project.hidden? %>
<%= t('projects.index.hidden') %>
<% else %>
<%= t('projects.index.visible') %>
<% end %>
<%= t('projects.index.card.users') %>
<% project.user_projects[0..3].each do |user_project| %>
<%= image_tag(avatar_path(user_project.user, :icon_small), title: user_name_with_role(user_project)) %>
<% end %>
<% more_users = project.user_projects[4..-1].to_a %>
<% if more_users.any? %>
+<%= more_users.size %>
<% end %>
<% if can_manage_project?(project) %>
<%= link_to project_users_edit_path(project),
class: 'manage-users-link manage-project-users-link',
remote: true,
data: { 'view-mode': 'active' } do %>
<% end %>
<% end %>
<% if project.archived? %>
<%= t('projects.index.card.archived_date') %>
<%= l(project.archived_on, format: :full_date) %>
<%= l(project.archived_on, format: :full_with_comma) %>
<% end %>