Files
ImpTune/imptune/templates/partials/client_list.html
T
kawa 5bf152bcce feat(11-04): add client name links in printer_list.html and client_list.html
- printer_list.html: extract group_client_id from first printer in group;
  wrap client name in <a href="/clients/{id}"> when id present; Unassigned
  group renders as plain text (no dead link)
- client_list.html: wrap client name cell in <a href="/clients/{{ c.id }}">
2026-04-15 14:49:52 +02:00

23 lines
476 B
HTML

<div id="client-list">
{% if not clients %}
<p>No clients configured yet.</p>
{% else %}
<table>
<thead>
<tr>
<th>Name</th>
<th>Created</th>
</tr>
</thead>
<tbody>
{% for c in clients %}
<tr>
<td><a href="/clients/{{ c.id }}">{{ c.name }}</a></td>
<td>{{ c.created_at.strftime('%Y-%m-%d') if c.created_at else '—' }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>