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, caption_visible=false,
field_headings=[ field_headings=[
'API keys', 'API keys',
hidden_field_heading('Key type'),
hidden_field_heading('Action') hidden_field_heading('Action')
], ],
) %} ) %}
{% call field() %} {% call field() %}
{{ item.name }} <div class="file-list">
{% endcall %} {{ item.name }}
{% call field(status='default') %} <span class="file-list-hint">
{% if item.key_type == 'normal' %} {% if item.key_type == 'normal' %}
<span class="visually-hidden">Normal</span> <span class="visually-hidden">Normal</span>
{% elif item.key_type == 'team' %} {% elif item.key_type == 'team' %}
Only sends to team members Only sends to team members
{% elif item.key_type == 'test' %} {% elif item.key_type == 'test' %}
Simulates sending messages Simulates sending messages
{% endif %} {% endif %}
</span>
</div>
{% endcall %} {% endcall %}
{% if item.expiry_date %} {% if item.expiry_date %}
{% call field(align='right', status='default') %} {% call field(align='right') %}
Revoked {{ item.expiry_date|format_datetime }} Revoked {{ item.expiry_date|format_datetime }}
{% endcall %} {% endcall %}
{% else %} {% else %}