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:
parent
742ec4668e
commit
72816fe551
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue