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.

46 lines
1.4 KiB

  1. extends ./_layout.pug
  2. block rootNavRight
  3. loading-spinner
  4. .nav-item
  5. a.button(v-on:click='$store.dispatch("modalCreateUser/open")')
  6. i.icon-plus
  7. span= t('admin:users.createauthorize')
  8. block adminContent
  9. .hero
  10. h1.title#title= t('nav.users')
  11. h2.subtitle= t('admin:users.subtitle')
  12. table.table
  13. thead
  14. tr
  15. th
  16. th= t('admin:users.name')
  17. th= t('admin:users.email')
  18. th= t('admin:users.provider')
  19. th= t('admin:users.createdon')
  20. th= t('admin:users.updatedon')
  21. tbody
  22. each usr in usrs
  23. tr
  24. td.is-icon
  25. i.icon-user.is-grey
  26. td
  27. a(href='/admin/users/' + usr._id)= usr.name
  28. td= usr.email
  29. td.is-centered.has-icons
  30. case usr.provider
  31. when 'local': i.icon-server
  32. when 'windowslive': i.icon-windows2.is-blue
  33. when 'azure': i.icon-windows2.is-blue
  34. when 'google': i.icon-google.is-blue
  35. when 'facebook': i.icon-facebook.is-indigo
  36. when 'github': i.icon-github.is-grey
  37. when 'slack': i.icon-slack.is-purple
  38. when 'ldap': i.icon-arrow-repeat-outline
  39. default: i.icon-warning
  40. = t('auth:providers.' + usr.provider)
  41. td.is-centered= moment(usr.createdAt).format('lll')
  42. td.is-centered= moment(usr.updatedAt).format('lll')
  43. modal-create-user