mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 11:23:48 -05:00
Restore API keys table to 2 columns
Because it get ugly when there’s 3 columns and everything is wrapping.
This commit is contained in:
@@ -26,24 +26,25 @@
|
||||
caption_visible=false,
|
||||
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 %}
|
||||
<div class="file-list">
|
||||
{{ item.name }}
|
||||
<span class="file-list-hint">
|
||||
{% 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 %}
|
||||
</span>
|
||||
</div>
|
||||
{% endcall %}
|
||||
{% if item.expiry_date %}
|
||||
{% call field(align='right', status='default') %}
|
||||
{% call field(align='right') %}
|
||||
Revoked {{ item.expiry_date|format_datetime }}
|
||||
{% endcall %}
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user