Skip to content

Commit

Permalink
Add back in the stylings for partner status.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmarcia committed Jul 10, 2019
1 parent 5dc69a1 commit c595c72
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion app/views/partners/_partner_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@
<td><%= link_to partner_row.name, partner_path(partner_row) %></td>
<td><%= link_to partner_row.email, "mailto:#{partner_row.email}" %></td>
<td>
<%= partner_row.status.humanize %>
<% case status %>
<% when "uninvited" %>
<button class="btn btn-xs bg-teal">Uninvited</button>
<% when "invited" %>
<%= view_button_to "#", { text: "#{status.humanize}", icon: "check" } %>
<% when "awaiting_review" %>
<%= view_button_to "#", { text: "#{status.humanize}", icon: "check", type: "warning" } %>
<% when "approved" %>
<%= view_button_to "#", { text: "#{status.humanize}", icon: "check", type: "success" } %>
<% when "recertification_required" %>
<%= view_button_to "#", { text: "#{status.humanize}", icon: "minus", type: "danger" } %>
<% else %>
<span class="label label-teal">Errored</span>
<% end %>
</td>
<td>
<% case status %>
Expand Down

0 comments on commit c595c72

Please sign in to comment.