diff --git a/app/templates/components/api-key.html b/app/templates/components/api-key.html index adb3ece3e..57df093a9 100644 --- a/app/templates/components/api-key.html +++ b/app/templates/components/api-key.html @@ -1,11 +1,13 @@ -{% macro api_key(key, name, thing="API key", heading=True) %} - {% if heading %} +{% macro api_key(key, name, thing="API key") %} + {% if name == thing %}

{{ name }}

{% endif %} -
- {{ thing }}: {{ key }} +
+ + {% if name != thing %}{{ thing }}: {% endif %}{{ key }} +
{% endmacro %}