Updated button styles based on service status

Adjust the dropdown button's color in the index page to reflect service status dynamically. Buttons now show as 'btn-primary' when the service is operational ('OK') and 'btn-danger' when it isn't, improving visual feedback for users.
This commit is contained in:
Kumi 2023-12-31 14:40:31 +01:00
parent 742ec4668e
commit 72816fe551
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -78,7 +78,8 @@
{% if link.alternatives %}
<button
type="button"
class="btn btn-danger dropdown-toggle dropdown-toggle-split"
class="btn dropdown-toggle dropdown-toggle-split
{% if service.status == "OK" %}btn-primary{% else %}btn-danger{% endif %}"
data-bs-toggle="dropdown"
aria-expanded="false"
>