Skip to content

Commit

Permalink
485837: Add comment about bucket naming
Browse files Browse the repository at this point in the history
  • Loading branch information
philsegal committed Jan 9, 2025
1 parent 77f09c1 commit 126e93f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/server/services/buckets/views/all.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<a class="app-link app-link--underline app-link--text-colour" href="{{ supportChannel }}" target="_blank"
rel="noopener noreferrer">#cdp-support</a>
{% endset %}
{% set bucketNamesInfoHtml %}
Why do bucket names have random characters at the end?
<a class="app-link app-link--underline app-link--text-colour" href="/documentation/how-to/buckets.md#bucket-naming" target="_blank"
rel="noopener noreferrer">See Bucket Naming documentation</a> for more details
{% endset %}

{% set allEnvironmentsTables = [] %}
{% for environment, detail in bucketsByEnvironment %}
Expand Down Expand Up @@ -72,6 +77,11 @@
View buckets for {{ service.serviceName }} in all CDP environments
</p>

{{ appInfo({
classes: "govuk-!-margin-bottom-4",
html: bucketNamesInfoHtml
}) }}

<div class="app-grid app-grid--fluid">

{% for detail in allEnvironmentsTables %}
Expand Down
11 changes: 11 additions & 0 deletions src/server/services/buckets/views/environment.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<a class="app-link app-link--underline app-link--text-colour" href="{{ supportChannel }}" target="_blank"
rel="noopener noreferrer">#cdp-support</a>
{% endset %}
{% set bucketNamesInfoHtml %}
Why do bucket names have random characters at the end?
<a class="app-link app-link--underline app-link--text-colour" href="/documentation/how-to/buckets.md#bucket-naming" target="_blank"
rel="noopener noreferrer">See Bucket Naming documentation</a> for more details
{% endset %}


{% set bucketsTableRows = [] %}
{% for bucket in buckets %}
Expand Down Expand Up @@ -46,6 +52,11 @@
Buckets available to your service
</p>

{{ appInfo({
classes: "govuk-!-margin-bottom-4",
html: bucketNamesInfoHtml
}) }}

{% call appPanel({ classes: "govuk-!-margin-bottom-6" }) %}
{% if buckets | length %}
{{ govukTable({
Expand Down

0 comments on commit 126e93f

Please sign in to comment.