ezidam: list apps: show confidentiality

This commit is contained in:
Philippe Loctaux 2023-04-02 02:05:51 +02:00
parent e06bd31b4c
commit 4b8b82e577

View file

@ -60,6 +60,9 @@
<th> <th>
<button class="table-sort" data-sort="sort-id">ID</button> <button class="table-sort" data-sort="sort-id">ID</button>
</th> </th>
<th>
<button class="table-sort" data-sort="sort-confidentiality">Confidentiality</button>
</th>
<th> <th>
<button class="table-sort" data-sort="sort-redirect-uri">Redirect URI</button> <button class="table-sort" data-sort="sort-redirect-uri">Redirect URI</button>
</th> </th>
@ -85,6 +88,13 @@
{{ app.created_at | date() }} {{ app.created_at | date() }}
</td> </td>
<td class="sort-id">{{ app.id }}</td> <td class="sort-id">{{ app.id }}</td>
<td class="sort-confidentiality">
{% if app.is_confidential == true %}
Private
{% else %}
Public
{% endif %}
</td>
<td class="sort-redirect-uri">{{ app.redirect_uri }}</td> <td class="sort-redirect-uri">{{ app.redirect_uri }}</td>
<td> <td>
<a href="apps/{{ app.id }}">Details</a> <a href="apps/{{ app.id }}">Details</a>
@ -128,7 +138,7 @@
listClass: 'table-tbody', listClass: 'table-tbody',
valueNames: ['sort-name', 'sort-status', valueNames: ['sort-name', 'sort-status',
{attr: 'data-date', name: 'sort-creation-date'}, {attr: 'data-date', name: 'sort-creation-date'},
'sort-id', 'sort-redirect-uri', 'sort-id', 'sort-confidentiality', 'sort-redirect-uri',
] ]
}); });
}) })