Skip to content

Commit e1a8c91

Browse files
Refactor targets.html template to improve UI and functionality
1 parent de01e78 commit e1a8c91

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/templates/other/targets.html

+8-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
{% block content %}
99
<div class="container">
1010
<h1>SystemGuard/Prometheus Targets</h1>
11-
<p class="text-center">SystemGuard uses Prometheus to monitor the services. You can add, remove, and change the scrape interval of the
11+
<p class="text-center">SystemGuard uses Prometheus to monitor the services. You can add, remove, and change the
12+
scrape interval of the
1213
targets here.</p>
1314
{% include 'ext/message.html' %}
1415

@@ -36,12 +37,12 @@ <h1>SystemGuard/Prometheus Targets</h1>
3637
<li>
3738
{{ target }}
3839
{% if not system_ip_address in target %}
39-
<form action="{{ url_for('remove_target') }}" method="post" class="inline-form"></form>
40-
<input type="hidden" name="job_name" value="{{ info.job_name }}">
41-
<input type="hidden" name="target_to_remove" value="{{ target }}">
42-
<button type="submit" class="btn-danger">
43-
<i class="fas fa-times"></i> Remove
44-
</button>
40+
<form action="{{ url_for('remove_target') }}" method="post" class="inline-form">
41+
<input type="hidden" name="job_name" value="{{ info.job_name }}">
42+
<input type="hidden" name="target_to_remove" value="{{ target }}">
43+
<button type="submit" class="btn-danger">
44+
<i class="fas fa-times"></i> Remove
45+
</button>
4546
</form>
4647
{% endif %}
4748
</li>

0 commit comments

Comments
 (0)