{{t 'resources.user.title_plural'}}

{{#if @model}}

{{t 'resources.user.description'}}

{{/if}}
{{#if (can 'create collection' this.scope collection='users')}} {{#if @model}} {{t 'titles.new' }} {{/if}} {{/if}} {{#if @model}} {{t 'form.name.label'}} {{t 'form.id.label'}} {{#each @model as |user|}} {{#if (can 'read model' user)}} {{user.displayName}} {{else}} {{user.displayName}} {{/if}} {{#if user.accountName}}
{{user.accountName}} {{/if}}

{{user.description}}

{{user.id}}
{{/each}}
{{else}} {{#if (can 'list collection' this.scope collection='users')}} {{! can list (at least): show default welcome message}} {{t 'resources.user.description'}} {{else if (can 'create collection' this.scope collection='users')}} {{! can create (only): show create-but-not-list welcome message}} {{t 'descriptions.create-but-not-list' resource=(t 'resources.user.title_plural') }} {{else}} {{! can neither list nor create }} {{t 'descriptions.neither-list-nor-create' resource=(t 'resources.user.title_plural') }} {{/if}} {{#if (can 'create collection' this.scope collection='users')}} {{t 'titles.new'}} {{/if}} {{/if}}