mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-13 09:50:08 -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",
|
||||
caption="API keys",
|
||||
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() %}
|
||||
{{ item.name }}
|
||||
{% 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 %}
|
||||
{% call field(align='right', status='default') %}
|
||||
Revoked {{ item.expiry_date|format_datetime }}
|
||||
|
||||
Reference in New Issue
Block a user