use anchors and LearnLink component

This commit is contained in:
Matthew Irish 2018-11-14 14:58:33 -06:00
parent e89a6d6176
commit 9dfcaacda4
7 changed files with 34 additions and 23 deletions

View File

@ -19,12 +19,13 @@
{{else}}
<EmptyState
@title="No metadata for {{model.name}} yet"
@message="You can store custom data that you want to associate with a {{lowercase (humanize model.identityType)}}. Edit this {{lowercase (humanize model.identityType)}} to get started.">
@message="You can store custom data that you want to associate with a {{lowercase (humanize model.identityType)}}. Edit this {{lowercase (humanize model.identityType)}} to get started."
>
{{#link-to "vault.cluster.access.identity.aliases.edit" model.id tagName="button" class="link"}}
Edit {{lowercase (humanize model.identityType)}}
{{/link-to}}
<DocLink @href="https://learn.hashicorp.com/vault/identity-access-management/iam-identity">
<LearnLink @path="/vault/identity-access-management/iam-identity">
Learn More
</DocLink>
</LearnLink>
</EmptyState>
{{/each-in}}

View File

@ -1,8 +1,9 @@
{{#if (and isV2 modelForData.destroyed)}}
<EmptyState
@title="Version {{modelForData.version}} of this secret has been permanently destroyed"
@message="A version that has been permanently deleted cannot be restored. You can see other versions of this secret in the History menu.">
<DocLink @href="https://www.vaultproject.io/docs/secrets/kv/kv-v2.html">
@message="A version that has been permanently deleted cannot be restored. You can see other versions of this secret in the History menu."
>
<DocLink @path="/docs/secrets/kv/kv-v2.html">
Learn More
</DocLink>
</EmptyState>
@ -10,8 +11,9 @@
<EmptyState
@title="Version {{modelForData.version}} of this secret has been deleted"
@message="A version that has been deleted but can be undeleted using the Version {{modelForData.version}} menu above.
You can also see other versions of this secret in the History menu.">
<DocLink @href="https://www.vaultproject.io/docs/secrets/kv/kv-v2.html">
You can also see other versions of this secret in the History menu."
>
<DocLink @path="/docs/secrets/kv/kv-v2.html">
Learn More
</DocLink>
</EmptyState>

View File

@ -45,12 +45,13 @@
{{else}}
<EmptyState
@title="No {{identityType}} aliases yet"
@message="A list of {{identityType}} aliases in this namespace will be listed here. Choose one of the {{pluralize identityType}} and click &quot;Add Alias&quot; to get started.">
@message="A list of {{identityType}} aliases in this namespace will be listed here. Choose one of the {{pluralize identityType}} and click &quot;Add Alias&quot; to get started."
>
{{#link-to "vault.cluster.access.identity.create" (pluralize identityType) tagName="button" class="link"}}
Add {{identityType}}
{{/link-to}}
<DocLink @href="https://learn.hashicorp.com/vault/identity-access-management/iam-identity">
<LearnLink @path="/vault/identity-access-management/iam-identity">
Learn More
</DocLink>
</LearnLink>
</EmptyState>
{{/if}}

View File

@ -116,12 +116,13 @@
{{else}}
<EmptyState
@title="No {{pluralize identityType}} yet"
@message="A list of {{pluralize identityType}} in this namespace will be listed here. Add your first {{identityType}} to get started.">
@message="A list of {{pluralize identityType}} in this namespace will be listed here. Add your first {{identityType}} to get started."
>
{{#link-to "vault.cluster.access.identity.create" (pluralize identityType) tagName="button" class="link"}}
Add {{identityType}}
{{/link-to}}
<DocLink @href="https://learn.hashicorp.com/vault/identity-access-management/iam-identity">
<LearnLink @path="/vault/identity-access-management/iam-identity">
Learn More
</DocLink>
</LearnLink>
</EmptyState>
{{/if}}

View File

@ -20,14 +20,18 @@
@title="No leases with that ID"
@message="Unable to find lease for the ID &quot;{{model.keyId}}&quot;. Try going back to the lookup and re-entering the ID."
>
{{#link-to "vault.cluster.access.leases" tagName="button" class="link"}}Back to lookup{{/link-to}}
{{#link-to "vault.cluster.access.leases" class="link"}}
Back to lookup
{{/link-to}}
</EmptyState>
{{else if (eq model.httpStatus 403)}}
<EmptyState
@title="You don't have access to a lease with that ID"
@message="If you think you've reached this page in error, please contact your administrator."
>
{{#link-to "vault.cluster.access.leases" tagName="button" class="link"}}Back to lookup{{/link-to}}
{{#link-to "vault.cluster.access.leases" class="link"}}
Back to lookup
{{/link-to}}
</EmptyState>
{{else}}
{{#each model.errors as |error|}}

View File

@ -148,19 +148,20 @@
{{/if}}
{{else}}
<EmptyState
@title="No policies matching <code>{{pageFilter}}</code>"
@title="No policies matching &quot;{{pageFilter}}&quot;"
/>
{{/each}}
{{else}}
<EmptyState
@title="No {{uppercase policyType}} policies yet"
@message="A list of policies will be listed here. Add your first {{uppercase policyType}} policy to get started.">
{{#link-to "vault.cluster.policies.create" tagName="button" class="link"}}
@message="A list of policies will be listed here. Add your first {{uppercase policyType}} policy to get started."
>
{{#link-to "vault.cluster.policies.create" class="link"}}
Add {{uppercase policyType}} policy
{{/link-to}}
<DocLink @href="https://learn.hashicorp.com/vault/getting-started/policies">
<LearnLink @path="/vault/getting-started/policies">
Learn More
</DocLink>
</LearnLink>
</EmptyState>
{{/if}}
{{else}}

View File

@ -48,13 +48,14 @@
{{else}}
<EmptyState
@title="No known {{performanceMode}} secondary clusters associated with this cluster"
@message="Associated secondary clusters will be listed here. Add your first secondary cluster to get started.">
@message="Associated secondary clusters will be listed here. Add your first secondary cluster to get started."
>
{{#if model.canAddSecondary}}
{{#link-to 'vault.cluster.replication.mode.secondaries.add' model.name replicationMode tagName="button" class="link" }}
{{#link-to 'vault.cluster.replication.mode.secondaries.add' model.name replicationMode class="link" }}
Add secondary
{{/link-to}}
{{/if}}
<DocLink @href="https://www.vaultproject.io/docs/internals/replication.html">
<DocLink @path="/docs/internals/replication.html">
Learn More
</DocLink>
</EmptyState>