Merge pull request 'add linkable anchors to host names' (#2) from kunsi-heading-links into main
Reviewed-on: https://git.kunsmann.eu/sophie/simple-icinga-dashboard/pulls/2
This commit is contained in:
commit
666ab8f6a6
2 changed files with 9 additions and 9 deletions
|
@ -112,8 +112,8 @@ def render_services_per_host(host, data):
|
||||||
|
|
||||||
services_template = """
|
services_template = """
|
||||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||||
{}
|
<a href="#{0}">{0}</a>
|
||||||
<span class="badge badge-{}">{}</span>
|
<span class="badge badge-{1}">{2}</span>
|
||||||
</li>
|
</li>
|
||||||
"""
|
"""
|
||||||
services_hostname_template = """<div class="card-header d-flex justify-content-between align-items-center"><h4>{}</h4> <span class="badge badge-success">OK</span></div>"""
|
services_hostname_template = """<div class="card-header d-flex justify-content-between align-items-center"><h4>{}</h4> <span class="badge badge-success">OK</span></div>"""
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="card text-white border-primary mb-3">
|
<div class="card text-white border-primary mb-3">
|
||||||
{card_header}
|
{card_header}
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<ul class="list-group">{services_critical}</ul>
|
<ul class="list-group">{services_critical}</ul>
|
||||||
<ul class="list-group">{services_warning}</ul>
|
<ul class="list-group">{services_warning}</ul>
|
||||||
<ul class="list-group">{services_operational}</ul>
|
<ul class="list-group">{services_operational}</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue