Add: tooltip to date fields

This commit is contained in:
Aroy-Art 2024-10-16 20:02:08 +02:00
parent b6bfa35afa
commit c804af484e
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -31,7 +31,7 @@
<th>URL:<span class="ms-1 text-primary"></span></th> <th>URL:<span class="ms-1 text-primary"></span></th>
<th>Category:<span class="ms-1 text-primary"></span></th> <th>Category:<span class="ms-1 text-primary"></span></th>
<th>Added On:<span class="ms-1 text-primary"></span></th> <th>Added On:<span class="ms-1 text-primary"></span></th>
<th>Last Imported/Scaned:<span class="ms-1 text-primary"></span></th> <th data-bs-toggle="tooltip" title="Last Imported/Scaned">Imported:<span class="ms-1 text-primary"></span></th>
{% if user.is_superuser or user.is_staff %} {% if user.is_superuser or user.is_staff %}
<th>Added By:<span class="ms-1 text-primary"></span></th> <th>Added By:<span class="ms-1 text-primary"></span></th>
{% endif %} {% endif %}
@ -44,8 +44,8 @@
<tr id="C-{{ url.pk }}"> <tr id="C-{{ url.pk }}">
<td>{{ url.url }}</td> <td>{{ url.url }}</td>
<td>{{ url.category }}</td> <td>{{ url.category }}</td>
<td data-timestamp="{{ url.date_added|date:'U' }}">{{ url.date_added|date:'Y-m-d H:i' }}</td> <td data-timestamp="{{ url.date_added|date:'U' }}" data-bs-toggle="tooltip" title="{{ url.date_added|date:'Y-m-d H:i' }}">{{ url.date_added|date:'Y-m-d' }}</td>
<td data-timestamp="{{ url.last_imported|date:'U' }}">{{ url.last_imported|date:'Y-m-d H:i' }}</td> <td data-timestamp="{{ url.last_imported|date:'U' }}" data-bs-toggle="tooltip" title="{{ url.last_imported|date:'Y-m-d H:i' }}">{{ url.last_imported|date:'Y-m-d' }}</td>
{% if user.is_superuser or user.is_staff %} {% if user.is_superuser or user.is_staff %}
<td>{{ url.added_by_user|capfirst }}</td> <td>{{ url.added_by_user|capfirst }}</td>
{% endif %} {% endif %}