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.

47 lines
1.5 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.nc-icon-outline.ui-1_simple-add
  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. i.pageicon.nc-icon-outline.users_multiple-19
  13. table.table
  14. thead
  15. tr
  16. th
  17. th= t('admin:users.name')
  18. th= t('admin:users.email')
  19. th= t('admin:users.provider')
  20. th= t('admin:users.createdon')
  21. th= t('admin:users.updatedon')
  22. tbody
  23. each usr in usrs
  24. tr
  25. td.is-icon
  26. i.nc-icon-outline.users_single-05.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': i.nc-icon-outline.ui-1_database
  33. when 'windowslive': i.icon-windows2.is-blue
  34. when 'azure': i.icon-windows2.is-blue
  35. when 'google': i.icon-google.is-blue
  36. when 'facebook': i.icon-facebook.is-indigo
  37. when 'github': i.icon-github.is-grey
  38. when 'slack': i.icon-slack.is-purple
  39. when 'ldap': i.icon-arrow-repeat-outline
  40. default: i.icon-warning
  41. = t('auth:providers.' + usr.provider)
  42. td.is-centered= moment(usr.createdAt).format('lll')
  43. td.is-centered= moment(usr.updatedAt).format('lll')
  44. modal-create-user