{{t 'resources.role.title_plural'}}

{{#if @model}}

{{t 'resources.role.description'}}

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

{{role.description}}

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