apps list: nicer display of table, show time

This commit is contained in:
Philippe Loctaux 2023-04-16 21:57:05 +02:00
parent 800705e134
commit e3bda01eca

View file

@ -44,7 +44,7 @@
{% if apps | length != 0 %} {% if apps | length != 0 %}
<div class="card"> <div class="card">
<div id="table-default" class="table-responsive"> <div id="table-default" class="table-responsive">
<table class="table table-hover"> <table class="table table-hover table-vcenter">
<!-- Table header --> <!-- Table header -->
<thead> <thead>
<tr> <tr>
@ -77,7 +77,7 @@
{% for app in apps %} {% for app in apps %}
<tr> <tr>
<td class="sort-name">{{ app.label }}</td> <td class="sort-name">{{ app.label }}</td>
<td class="sort-status"> <td class="sort-status text-nowrap">
{% if app.is_archived == true %} {% if app.is_archived == true %}
<span class="badge bg-danger me-1"></span> Archived <span class="badge bg-danger me-1"></span> Archived
{% else %} {% else %}
@ -85,7 +85,7 @@
{% endif %} {% endif %}
</td> </td>
<td class="sort-creation-date" data-date='{{ app.created_at | date(format="%s") }}'> <td class="sort-creation-date" data-date='{{ app.created_at | date(format="%s") }}'>
{{ app.created_at | date(format="%F", timezone=user.zoneinfo | default(value="UTC")) }} {{ app.created_at | date(format="%F %T", timezone=user.zoneinfo | default(value="UTC")) }}
</td> </td>
<td class="sort-id">{{ app.id }}</td> <td class="sort-id">{{ app.id }}</td>
<td class="sort-confidentiality"> <td class="sort-confidentiality">