2016-11-21 01:09:50 +00:00
|
|
|
extends ./_layout.pug
|
|
|
|
|
2017-01-04 05:07:15 +00:00
|
|
|
block rootNavRight
|
2017-05-22 17:32:52 +00:00
|
|
|
loading-spinner
|
2017-02-10 02:35:37 +00:00
|
|
|
.nav-item
|
2017-05-26 00:54:03 +00:00
|
|
|
a.button(v-on:click='$store.dispatch("modalCreateUser/open")')
|
2017-06-18 22:35:33 +00:00
|
|
|
i.nc-icon-outline.ui-1_simple-add
|
2017-05-04 02:10:12 +00:00
|
|
|
span= t('admin:users.createauthorize')
|
2017-01-04 05:07:15 +00:00
|
|
|
|
2016-11-21 01:09:50 +00:00
|
|
|
block adminContent
|
2017-05-21 20:43:58 +00:00
|
|
|
.hero
|
|
|
|
h1.title#title= t('nav.users')
|
|
|
|
h2.subtitle= t('admin:users.subtitle')
|
|
|
|
table.table
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th
|
|
|
|
th= t('admin:users.name')
|
|
|
|
th= t('admin:users.email')
|
|
|
|
th= t('admin:users.provider')
|
|
|
|
th= t('admin:users.createdon')
|
|
|
|
th= t('admin:users.updatedon')
|
|
|
|
tbody
|
|
|
|
each usr in usrs
|
2017-02-10 02:35:37 +00:00
|
|
|
tr
|
2017-05-21 20:43:58 +00:00
|
|
|
td.is-icon
|
2017-06-18 22:35:33 +00:00
|
|
|
i.nc-icon-outline.users_single-05.is-grey
|
2017-05-21 20:43:58 +00:00
|
|
|
td
|
|
|
|
a(href='/admin/users/' + usr._id)= usr.name
|
|
|
|
td= usr.email
|
|
|
|
td.is-centered.has-icons
|
|
|
|
case usr.provider
|
2017-06-18 22:35:33 +00:00
|
|
|
when 'local': i.nc-icon-outline.ui-1_database
|
2017-05-21 20:43:58 +00:00
|
|
|
when 'windowslive': i.icon-windows2.is-blue
|
|
|
|
when 'azure': i.icon-windows2.is-blue
|
|
|
|
when 'google': i.icon-google.is-blue
|
|
|
|
when 'facebook': i.icon-facebook.is-indigo
|
|
|
|
when 'github': i.icon-github.is-grey
|
|
|
|
when 'slack': i.icon-slack.is-purple
|
|
|
|
when 'ldap': i.icon-arrow-repeat-outline
|
|
|
|
default: i.icon-warning
|
|
|
|
= t('auth:providers.' + usr.provider)
|
|
|
|
td.is-centered= moment(usr.createdAt).format('lll')
|
|
|
|
td.is-centered= moment(usr.updatedAt).format('lll')
|
2017-01-04 05:07:15 +00:00
|
|
|
|
2017-05-26 00:54:03 +00:00
|
|
|
modal-create-user
|