Semaphore/public/html/projects/users/list.jade
Matej Kramny b4cab16fda Improved UI
- Fixes #94
- Fixes admin permissions (needed to manipulate users)
2016-06-17 13:16:46 -07:00

19 lines
640 B
Plaintext

h3 Team
button.btn.btn-success.pull-right.btn-xs(ng-click="addUser()") add team member
table.table
thead: tr
th Name
th Username
th Email
th Admin
tbody: tr(ng-repeat="u in users" ng-class="{ info: u.id == user.id }")
td {{ u.name }}
td {{ u.username }}
td {{ u.email }}
td
i.fa.fa-fw(ng-if="!project_user.admin" ng-class="{ 'fa-times': !u.admin, 'fa-check': u.admin }")
.btn-group(ng-if="project_user.admin")
button.btn.btn-xs.btn-default(ng-click="setAdmin(u)")
i.fa.fa-fw(ng-class="{ 'fa-times': !u.admin, 'fa-check': u.admin }")
button.btn.btn-danger.pull-right.btn-xs(ng-click="remove(u)") remove