Permalink
Browse files

Change candidate list item background to red in office editor if desi…

…gnated as winner
  • Loading branch information...
jzblee committed Apr 7, 2017
1 parent 115dad5 commit 41820f22cea5083b9c640974b47c3d59d7b436e8
Showing with 3 additions and 1 deletion.
  1. +3 −1 views/partials/offices.html
@@ -302,11 +302,13 @@ <h3>Candidates</h3>
nominations.
<span class="text-warning">Yellow</span> rows denote candidates that have collected less than the
necessary nominations, but have already earned nominations.
+ <span class="text-danger">Red</span> rows denote candidates that have been designated as winners of this office.
</p>
<ul class="list-group">
<li class="list-group-item" ng-repeat="c in o.candidates | orderBy:'-nominations'"
ng-class="{'list-group-item-success': c.nominations >= o.nominationsRequired,
- 'list-group-item-warning': c.nominations > 0 && c.nominations < o.nominationsRequired}">
+ 'list-group-item-warning': c.nominations > 0 && c.nominations < o.nominationsRequired,
+ 'list-group-item-danger': c.winner}">
<button class="btn btn-default btn-xs pull-right" ng-click="toggleWon(c.rcsId, o.id)">
<span class="fa fa-trophy"></span>
</button>

0 comments on commit 41820f2

Please sign in to comment.