forked from Github-Mirrors/canaille
Add HTML table tags
This commit is contained in:
parent
36cc47e40d
commit
cfb67ed89b
5 changed files with 127 additions and 107 deletions
|
@ -13,11 +13,14 @@
|
|||
</h2>
|
||||
<table class="ui table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{% trans %}Name{% endtrans %}</th>
|
||||
<th>{% trans %}Description{% endtrans %}</th>
|
||||
<th>{% trans %}Number of members{% endtrans %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for group in groups %}
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -30,6 +33,7 @@
|
|||
<td>{{ group.member|len }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -15,19 +15,23 @@
|
|||
|
||||
<table class="ui table" data-order="[[ 3, "desc" ]]">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-orderable="false">{% trans %}Code{% endtrans %}</th>
|
||||
<th>{% trans %}Client{% endtrans %}</th>
|
||||
<th>{% trans %}Subject{% endtrans %}</th>
|
||||
<th>{% trans %}Created{% endtrans %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for authorization in authorizations %}
|
||||
<tr>
|
||||
<td><a href="{{ url_for('oidc.authorizations.view', authorization_id=authorization.authorization_code_id) }}">{{ authorization.authorization_code_id }}</a></td>
|
||||
<td><a href="{{ url_for('oidc.clients.edit', client_id=authorization.client_id) }}">{{ authorization.client_id }}</a></td>
|
||||
<td>{{ authorization.subject }}</td>
|
||||
<td data-order="{{ authorization.issue_date|timestamp }}>{{ authorization.issue_date }}</td>
|
||||
<td data-order="{{ authorization.issue_date|timestamp }}">{{ authorization.issue_date }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -19,11 +19,14 @@
|
|||
|
||||
<table class="ui table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{% trans %}Name{% endtrans %}</th>
|
||||
<th>{% trans %}URL{% endtrans %}</th>
|
||||
<th>{% trans %}Created{% endtrans %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for client in clients %}
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -40,6 +43,7 @@
|
|||
<td>{% if client.client_id_issued_at %}{{ client.client_id_issued_at }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -15,11 +15,14 @@
|
|||
|
||||
<table class="ui table" data-order="[[ 3, "desc" ]]">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-orderable="false">{% trans %}Token{% endtrans %}</th>
|
||||
<th>{% trans %}Client{% endtrans %}</th>
|
||||
<th>{% trans %}Subject{% endtrans %}</th>
|
||||
<th>{% trans %}Created{% endtrans %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for token in tokens %}
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -40,6 +43,7 @@
|
|||
<td data-order="{{ token.issue_date|timestamp }}">{{ token.issue_date }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{% macro user_list(watcher, users) %}
|
||||
<table class="ui table">
|
||||
<thead>
|
||||
<tr>
|
||||
{% if watcher.can_read("jpegPhoto") %}
|
||||
<th></th>
|
||||
{% endif %}
|
||||
|
@ -16,7 +17,9 @@
|
|||
{% if watcher.can_manage_groups %}
|
||||
<th>{% trans %}Groups{% endtrans %}</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
{% if watcher.can_read("jpegPhoto") %}
|
||||
|
@ -50,5 +53,6 @@
|
|||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endmacro %}
|
||||
|
|
Loading…
Reference in a new issue