mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-27 20:51:00 -04:00
Merge pull request #3603 from alphagov/fix-template-id-copy-to-clipboard
Fix comparison in api_key component
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
{% macro api_key(key, name, thing="API key") %}
|
||||
{% if name == thing %}
|
||||
{% if name|lower == thing|lower %}
|
||||
<h2 class="api-key__name">
|
||||
{{ name }}
|
||||
</h2>
|
||||
{% endif %}
|
||||
<div data-module="api-key" data-key="{{ key }}" data-thing="{{ thing }}" data-name="{{ name }}">
|
||||
<span class="api-key__key">
|
||||
{% if name != thing %}<span class="govuk-visually-hidden">{{ thing }}: </span>{% endif %}{{ key }}
|
||||
{% if name|lower != thing|lower %}<span class="govuk-visually-hidden">{{ thing }}: </span>{% endif %}{{ key }}
|
||||
</span>
|
||||
<span class="api-key__notice" aria-live="assertive"></span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user