Skip to content

Commit c595c72

Browse files
committed
Add back in the stylings for partner status.
1 parent 5dc69a1 commit c595c72

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

app/views/partners/_partner_row.html.erb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33
<td><%= link_to partner_row.name, partner_path(partner_row) %></td>
44
<td><%= link_to partner_row.email, "mailto:#{partner_row.email}" %></td>
55
<td>
6-
<%= partner_row.status.humanize %>
6+
<% case status %>
7+
<% when "uninvited" %>
8+
<button class="btn btn-xs bg-teal">Uninvited</button>
9+
<% when "invited" %>
10+
<%= view_button_to "#", { text: "#{status.humanize}", icon: "check" } %>
11+
12+
<% when "awaiting_review" %>
13+
<%= view_button_to "#", { text: "#{status.humanize}", icon: "check", type: "warning" } %>
14+
<% when "approved" %>
15+
<%= view_button_to "#", { text: "#{status.humanize}", icon: "check", type: "success" } %>
16+
<% when "recertification_required" %>
17+
<%= view_button_to "#", { text: "#{status.humanize}", icon: "minus", type: "danger" } %>
18+
<% else %>
19+
<span class="label label-teal">Errored</span>
20+
<% end %>
721
</td>
822
<td>
923
<% case status %>

0 commit comments

Comments
 (0)