32 lines
1.7 KiB
Plaintext
32 lines
1.7 KiB
Plaintext
<div class="col-sm-6 col-md-4 col-lg-3 mt-4">
|
|
<li class="card h-100 shadow-sm">
|
|
<div class="card-header d-flex justify-content-between align-items-end bg-white border-bottom-0 pr-2">
|
|
<small class="text-more-muted text-uppercase font-weight-bold"><%= project.client_name %></small>
|
|
<div class="dropdown">
|
|
<%= button_tag fa_icon("gear"), class: "btn btn-white btn-sm border text-muted", data: { toggle: "dropdown" }, aria: { haspopup: true, expanded: false } %>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<%= link_to fa_icon("users fw", text: t(".actions.team")), [project, :project_memberships], class: "dropdown-item" %>
|
|
<% if policy(project).edit? %>
|
|
<%= link_to fa_icon("pencil fw", text: t(".actions.edit")), [:edit, project], class: "dropdown-item" %>
|
|
<% end %>
|
|
<% if policy(project).destroy? %>
|
|
<%= link_to fa_icon("trash fw", text: t(".actions.delete")), project, method: :delete, class: "dropdown-item", data: { confirm: t(".confirm_delete", count: project.all_releases_count) } %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body py-0">
|
|
<%= link_to project, class: "d-block pb-5 text-decoration-none text-reset link-stretched" do %>
|
|
<h2 class="h5"><%= project.name %></h2>
|
|
<% end %>
|
|
</div>
|
|
<div class="card-footer bg-white border-top-0 px-2">
|
|
<div class="d-flex flex-row justify-content-start align-items-center flex-wrap">
|
|
<%= team_member_list project.members.first(3) %>
|
|
<small class="ml-1"><%= link_to pluralize(project.members.size, t(".team_member")), [project, :project_memberships], class: "text-muted" %></small>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</div>
|
|
|