2024-08-08 18:17:43 +00:00
|
|
|
{% fragment as default_content %}
|
2024-08-11 15:13:31 +00:00
|
|
|
{% load randomid %}
|
2024-08-08 18:17:43 +00:00
|
|
|
{% for td in data %}
|
|
|
|
{% if forloop.first %}
|
|
|
|
<th scope="row"
|
2024-08-11 15:13:31 +00:00
|
|
|
class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white min-w-30char">
|
|
|
|
{% randomid td as th_popover_id %}
|
|
|
|
<span data-popover-target="{{ th_popover_id }}">{{ td|truncatechars:30 }}</span>
|
|
|
|
{% if td|length > 30 %}
|
|
|
|
{% #popover id=th_popover_id %}
|
|
|
|
{{ td }}
|
|
|
|
{% /popover %}
|
|
|
|
{% endif %}
|
2024-08-09 09:47:10 +00:00
|
|
|
</th>
|
2024-08-08 18:17:43 +00:00
|
|
|
{% else %}
|
|
|
|
{% #table_td %}
|
|
|
|
{{ td }}
|
|
|
|
{% /table_td %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfragment %}
|
2024-08-09 09:47:10 +00:00
|
|
|
<tr class="odd:bg-white odd:dark:bg-gray-900 even:bg-gray-50 even:dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 border-b">
|
2024-08-08 18:17:43 +00:00
|
|
|
{{ children|default:default_content }}
|
|
|
|
</tr>
|