Add a roles directive and properly recolor the roles

This commit is contained in:
Joseph Schorr 2013-11-05 14:47:46 -05:00
parent 1cd4fa8d9b
commit a79b181496
6 changed files with 105 additions and 20 deletions

View file

@ -0,0 +1,5 @@
<div class="btn-group btn-group-sm">
<button ng-repeat="role in roles"
type="button" class="btn" ng-click="setRole(role.id)"
ng-class="(currentRole == role.id) ? ('active btn-' + role.kind) : 'btn-default'">{{ role.title }}</button>
</div>