Skip to content

Commit

Permalink
colorize button
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefal committed Jan 30, 2024
1 parent 6e053d8 commit fe69988
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web_app/templates/diagnostic.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
{% block content %}
<div class="container">
{% for service in logs %}
{% set btncolor = 'btn-success' if service.active == 'Active' else 'btn-secondary' %}
<p>
<button class="btn btn-primary btn-block" type="button" data-toggle="collapse" data-target="#{{ service.name|replace('.','') }}" aria-expanded="false" aria-controls="{{ service.name|replace('.','') }}">
<button class="btn {{ btncolor }} btn-block" type="button" data-toggle="collapse" data-target="#{{ service.name|replace('.','') }}" aria-expanded="false" aria-controls="{{ service.name|replace('.','') }}">
{{ service.name }} : {{ service.active }}
</button>
</p>
Expand Down

0 comments on commit fe69988

Please sign in to comment.