2023-03-14 13:18:55 +00:00
{{ !
Copyright (c) HashiCorp, Inc.
2023-08-11 13:12:13 +00:00
SPDX-License-Identifier: BUSL-1.1
2023-03-14 13:18:55 +00:00
}}
2020-11-06 09:24:17 +00:00
{{ # if ( not-eq @ error .status "403" ) }}
2020-10-06 13:34:32 +00:00
<EmptyState
2020-11-06 09:24:17 +00:00
class= {{ concat "status-" @ error .status }}
2021-04-06 12:40:40 +00:00
@login= {{ @ log in }}
2020-10-06 13:34:32 +00:00
>
2020-07-09 09:08:47 +00:00
<BlockSlot @name="header">
2021-12-21 06:49:18 +00:00
<h2>
{{ or @ error .message "Consul returned an error" }}
</h2>
2020-07-09 09:08:47 +00:00
</BlockSlot>
2020-11-06 09:24:17 +00:00
{{ # if @ error .status }}
2020-07-09 09:08:47 +00:00
<BlockSlot @name="subheader">
2021-12-21 06:49:18 +00:00
<h3
data-test-status= {{ @ error .status }}
>
Error {{ @ error .status }}
</h3>
2020-07-09 09:08:47 +00:00
</BlockSlot>
{{ / if }}
<BlockSlot @name="body">
2021-12-21 06:49:18 +00:00
<p>
{{ # if @ error .detail }}
{{ @ error .detail }}
{{ else }}
2020-11-19 16:07:23 +00:00
You may have visited a URL that is loading an unknown resource, so you can try going back to the root or try re-submitting your ACL Token/SecretID by going back to ACLs.
2021-12-21 06:49:18 +00:00
{{ / if }}
</p>
2020-07-09 09:08:47 +00:00
</BlockSlot>
<BlockSlot @name="actions">
2023-02-22 21:05:15 +00:00
<li>
<Hds::Link::Standalone
2021-12-21 06:49:18 +00:00
data-test-home
2023-02-22 21:05:15 +00:00
@route='index'
@text='Go back'
@icon='chevron-left'
@iconPosition='trailing'
@size='small'
/>
2020-07-09 09:08:47 +00:00
</li>
2023-02-22 21:05:15 +00:00
<li>
<Hds::Link::Standalone
data-test-home
@text='Read the documentation'
2021-12-21 06:49:18 +00:00
@href=" {{ env 'CONSUL_DOCS_URL' }} "
2023-02-22 21:05:15 +00:00
@iconPosition='trailing'
@icon='docs-link'
@size='small'
/>
2020-07-09 09:08:47 +00:00
</li>
</BlockSlot>
</EmptyState>
{{ else }}
2020-10-06 13:34:32 +00:00
<EmptyState
2021-12-21 06:49:18 +00:00
class= {{ concat "status-" @ error .status }}
2021-04-06 12:40:40 +00:00
@login= {{ @ log in }}
2020-10-06 13:34:32 +00:00
>
2020-07-09 09:08:47 +00:00
<BlockSlot @name="header">
2021-12-21 06:49:18 +00:00
<h2
data-test-status= {{ @ error .status }}
>
You are not authorized
</h2>
2020-07-09 09:08:47 +00:00
</BlockSlot>
<BlockSlot @name="subheader">
2021-12-21 06:49:18 +00:00
<h3>
Error {{ @ error .status }}
</h3>
2020-07-09 09:08:47 +00:00
</BlockSlot>
<BlockSlot @name="body">
<p>
You must be granted permissions to view this data. Ask your administrator if you think you should have access.
</p>
</BlockSlot>
<BlockSlot @name="actions">
2023-02-22 21:05:15 +00:00
<li>
<Hds::Link::Standalone
@text='Read the documentation'
2021-12-21 06:49:18 +00:00
@href=" {{ env 'CONSUL_DOCS_URL' }} /acl/index.html"
2023-02-22 21:05:15 +00:00
@icon='docs-link'
@iconPosition='trailing'
@size='small'
/>
2020-07-09 09:08:47 +00:00
</li>
2023-02-22 21:05:15 +00:00
<li>
<Hds::Link::Standalone
@text='Follow the guide'
2021-12-21 06:49:18 +00:00
@href=" {{ env 'CONSUL_DOCS_LEARN_URL' }} /consul/security-networking/production-acls"
2023-02-22 21:05:15 +00:00
@icon='learn-link'
@iconPosition='trailing'
@size='small'
/>
2020-07-09 09:08:47 +00:00
</li>
</BlockSlot>
</EmptyState>
{{ / if }}