{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }}

{{t 'resources.group.title_plural'}}

{{t 'resources.group.description'}}

{{#if (can 'create model' this.scope collection='groups')}} {{#if @model}} {{t 'resources.group.titles.new' }} {{/if}} {{/if}} {{#if @model}} <:body as |B|> {{#if (can 'read group' B.data)}} {{B.data.displayName}} {{else}} {{B.data.displayName}} {{/if}}

{{B.data.description}}

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