Refactor templates and utility functions for improved rendering and usability; enhance icon usage and link handling in various templates
This commit is contained in:
parent
b68c25a05a
commit
3915b97231
12 changed files with 102 additions and 90 deletions
|
@ -9,7 +9,7 @@
|
|||
<thead class="sticky-top">
|
||||
<tr>
|
||||
{% for h in headers %}
|
||||
<th>{{ h }}</th>
|
||||
<th class="text-nowrap">{{ h }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<tr {% if entry_route %}onclick="window.location='{{ url_for('main.' + entry_route, id=row.id) }}'"
|
||||
style="cursor: pointer;" {% endif %}>
|
||||
{% for cell in row.cells %}
|
||||
<td {% if cell.type=='bool' %}class="text-center" {% endif %}>
|
||||
<td class="text-nowrap{% if cell.type=='bool' %} text-center{% endif %}">
|
||||
{% if cell.type == 'bool' %}
|
||||
{{ cell.html | safe }}
|
||||
{% elif cell.url %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue