bdd181425b
Docker Compose project with automated Playwright benchmarks comparing django-liveview 2.2.0 against Phoenix LiveView 1.0 across 6 scenarios.
23 lines
963 B
HTML
23 lines
963 B
HTML
<tr id="alert-{{ alert.id }}" class="border-b border-gray-100 hover:bg-gray-50">
|
|
<td class="px-4 py-3">
|
|
{% if alert.alert_type == "CRITICAL" %}
|
|
<span class="px-2 py-1 rounded text-xs font-semibold bg-red-100 text-red-700">CRITICAL</span>
|
|
{% elif alert.alert_type == "WARNING" %}
|
|
<span class="px-2 py-1 rounded text-xs font-semibold bg-yellow-100 text-yellow-700">WARNING</span>
|
|
{% else %}
|
|
<span class="px-2 py-1 rounded text-xs font-semibold bg-blue-100 text-blue-700">INFO</span>
|
|
{% endif %}
|
|
</td>
|
|
<td class="px-4 py-3">{{ alert.description }}</td>
|
|
<td class="px-4 py-3 text-gray-400 text-xs">{{ alert.created_at|date:"H:i:s" }}</td>
|
|
<td class="px-4 py-3 text-right">
|
|
<button
|
|
class="delete-btn text-red-500 hover:text-red-700 text-xs font-semibold"
|
|
data-liveview-function="delete_alert"
|
|
data-alert-id="{{ alert.id }}"
|
|
data-action="click->page#run">
|
|
Delete
|
|
</button>
|
|
</td>
|
|
</tr>
|