mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 00:28:26 -04:00
Indicate the type of key in the table of keys
When looking at your keys, it’s useful to know which are `test`/`team`. Default (`normal`) keys don’t get a label.
This commit is contained in:
@@ -24,11 +24,24 @@
|
|||||||
empty_message="You haven’t created any API keys yet",
|
empty_message="You haven’t created any API keys yet",
|
||||||
caption="API keys",
|
caption="API keys",
|
||||||
caption_visible=false,
|
caption_visible=false,
|
||||||
field_headings=['API keys', hidden_field_heading('Action')],
|
field_headings=[
|
||||||
|
'API keys',
|
||||||
|
hidden_field_heading('Key type'),
|
||||||
|
hidden_field_heading('Action')
|
||||||
|
],
|
||||||
) %}
|
) %}
|
||||||
{% call field() %}
|
{% call field() %}
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
{% call field(status='default') %}
|
||||||
|
{% if item.key_type == 'normal' %}
|
||||||
|
<span class="visually-hidden">Normal</span>
|
||||||
|
{% elif item.key_type == 'team' %}
|
||||||
|
Only sends to team members
|
||||||
|
{% elif item.key_type == 'test' %}
|
||||||
|
Simulates sending messages
|
||||||
|
{% endif %}
|
||||||
|
{% endcall %}
|
||||||
{% if item.expiry_date %}
|
{% if item.expiry_date %}
|
||||||
{% call field(align='right', status='default') %}
|
{% call field(align='right', status='default') %}
|
||||||
Revoked {{ item.expiry_date|format_datetime }}
|
Revoked {{ item.expiry_date|format_datetime }}
|
||||||
|
|||||||
Reference in New Issue
Block a user