2021-01-07 05:20:50 +08:00
|
|
|
<div class="card project-card"
|
|
|
|
data-id="<%= project.id %>"
|
|
|
|
data-edit-url="<%= edit_project_path(project) %>"
|
2022-09-02 19:57:52 +08:00
|
|
|
data-permissions-url="<%= permissions_project_path(project) %>">
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="checkbox-cell table-cell">
|
2020-11-03 15:07:17 +08:00
|
|
|
<div class="sci-checkbox-container">
|
2020-11-13 21:39:10 +08:00
|
|
|
<input value="1" type="checkbox" class="sci-checkbox project-card-selector">
|
2020-11-03 15:07:17 +08:00
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="project-name-cell table-cell">
|
2021-01-07 21:58:56 +08:00
|
|
|
<% if project.archived? %>
|
2021-02-11 21:16:57 +08:00
|
|
|
<%= link_to project_url(project, view_mode: :archived) do %>
|
2021-01-07 21:58:56 +08:00
|
|
|
<h3 class="name" title="<%= project.name %>">
|
|
|
|
<%= project.name %>
|
|
|
|
</h3>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to project_url(project) do %>
|
|
|
|
<h3 class="name" title="<%= project.name %>">
|
|
|
|
<%= project.name %>
|
|
|
|
</h3>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2020-11-03 15:07:17 +08:00
|
|
|
</div>
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="actions actions-cell table-cell">
|
2022-09-02 19:47:45 +08:00
|
|
|
<div
|
|
|
|
class="dropdown dropdown-async project-actions-menu <%= 'new-comments' if has_unseen_comments?(project) %>"
|
|
|
|
data-dropdown-url="<%= actions_dropdown_project_path(project) %>">
|
|
|
|
<button class="btn btn-light dropdown-toggle icon-btn" type="button" id="projectActionsDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
|
|
<i class="fas fa-ellipsis-h"></i>
|
|
|
|
</button>
|
|
|
|
<ul></ul>
|
|
|
|
</div>
|
2020-12-04 16:38:34 +08:00
|
|
|
</div>
|
2020-11-03 15:07:17 +08:00
|
|
|
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="data-row start-date-cell table-cell">
|
2020-12-18 20:05:23 +08:00
|
|
|
<span class="card-label"><%= t('projects.index.card.start_date') %></span>
|
|
|
|
<span class="value card-value"> <%= l(project.created_at, format: :full_date) %></span>
|
|
|
|
<span class="value cell-value"> <%= l(project.created_at, format: :full_with_comma) %></span>
|
2020-11-03 15:07:17 +08:00
|
|
|
</div>
|
|
|
|
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="data-row visibility-cell table-cell">
|
2020-11-03 15:07:17 +08:00
|
|
|
<span class="card-label"><%= t('projects.index.card.visibility') %></span>
|
|
|
|
<span class="value">
|
|
|
|
<% if project.hidden? %>
|
|
|
|
<%= t('projects.index.hidden') %>
|
|
|
|
<% else %>
|
|
|
|
<%= t('projects.index.visible') %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="data-row user-cell table-cell">
|
2020-11-03 15:07:17 +08:00
|
|
|
<span class="card-label"><%= t('projects.index.card.users') %></span>
|
|
|
|
<div class="value">
|
2021-09-07 17:27:52 +08:00
|
|
|
<% if can_manage_project_users?(project) %>
|
2021-06-27 15:45:32 +08:00
|
|
|
<%= link_to edit_access_permissions_project_path(project), class: 'project-users-link', data: { action: 'remote-modal' } do %>
|
2021-01-11 23:13:40 +08:00
|
|
|
<%= render partial: 'projects/index/users_list.html.erb', locals: { project: project } %>
|
|
|
|
<span class="new-user global-avatar-container">
|
2020-12-18 20:05:23 +08:00
|
|
|
<i class="fas fa-plus"></i>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
2021-01-11 23:13:40 +08:00
|
|
|
<% else %>
|
2021-06-27 15:45:32 +08:00
|
|
|
<%= link_to access_permissions_project_path(project), class: 'project-users-link', data: { action: 'remote-modal' } do %>
|
2021-01-11 23:13:40 +08:00
|
|
|
<%= render partial: 'projects/index/users_list.html.erb', locals: { project: project } %>
|
|
|
|
<% end %>
|
2020-12-11 20:07:12 +08:00
|
|
|
<% end %>
|
2020-11-03 15:07:17 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-18 20:05:23 +08:00
|
|
|
|
|
|
|
<% if project.archived? %>
|
2021-01-25 17:26:10 +08:00
|
|
|
<div class="data-row archived-date-cell table-cell">
|
2020-12-18 20:05:23 +08:00
|
|
|
<span class="card-label"><%= t('projects.index.card.archived_date') %></span>
|
|
|
|
<span class="value card-value"> <%= l(project.archived_on, format: :full_date) %></span>
|
|
|
|
<span class="value cell-value"> <%= l(project.archived_on, format: :full_with_comma) %></span>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2020-11-03 15:07:17 +08:00
|
|
|
</div>
|