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:
Chris Hill-Scott
2016-07-07 09:00:12 +01:00
parent 630b5df552
commit 8b9704df0e

View File

@@ -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 %}