You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.7 KiB

  1. extends ./_layout.pug
  2. block rootNavRight
  3. i.nav-item#notifload
  4. .nav-item
  5. a.button.btn-create-prompt
  6. i.icon-plus
  7. span Create / Authorize User
  8. block adminContent
  9. #page-type-admin-users
  10. .hero
  11. h1.title#title Users
  12. h2.subtitle Manage users and access rights
  13. table.table
  14. thead
  15. tr
  16. th
  17. th Name
  18. th Email
  19. th Provider
  20. th Created On
  21. th Updated On
  22. tbody
  23. each usr in usrs
  24. tr
  25. td.is-icon
  26. i.icon-user.is-grey
  27. td
  28. a(href='/admin/users/' + usr._id)= usr.name
  29. td= usr.email
  30. td.is-centered.has-icons
  31. case usr.provider
  32. when 'local'
  33. i.icon-server.is-deep-orange
  34. | Local Database
  35. when 'windowslive'
  36. i.icon-windows2.is-blue
  37. | Microsoft Account
  38. when 'google'
  39. i.icon-google.is-blue
  40. | Google ID
  41. when 'facebook'
  42. i.icon-facebook.is-purple
  43. | Facebook
  44. when 'github'
  45. i.icon-github.is-blue-grey
  46. | GitHub
  47. when 'slack'
  48. i.icon-slack.is-purple
  49. | Slack
  50. when 'ldap'
  51. i.icon-arrow-repeat-outline
  52. | LDAP / Active Directory
  53. default: i.icon-warning
  54. td.is-centered= userMoment(usr.createdAt).format('lll')
  55. td.is-centered= userMoment(usr.updatedAt).format('lll')
  56. include ../../modals/admin-createuser.pug