aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-04 12:32:39 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-04 12:32:39 +0300
commit0ca2d60e5a811820a14a65bfeef34eb539d4ba75 (patch)
tree12cfc5c60373554b15d97b758f5f411554ec8229 /index.html
parentadd journalctl output (diff)
downloadlinux-status-0ca2d60e5a811820a14a65bfeef34eb539d4ba75.tar.gz
linux-status-0ca2d60e5a811820a14a65bfeef34eb539d4ba75.zip
put status refresh interval next to header
Diffstat (limited to '')
-rw-r--r--index.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.html b/index.html
index d1adc14..0c2911a 100644
--- a/index.html
+++ b/index.html
@@ -19,6 +19,7 @@ h1, .h1 {
<div class="row">
<div class="col">
<h1 id="hostname">-</h1>
+ <p style="margin-bottom: 0;"><small>refreshed every <span id="status_refresh_interval">-</span> seconds</small></p>
</div>
<div class="col h1 text-right">
<div class="btn-group align-middle" role="group">
@@ -45,7 +46,7 @@ h1, .h1 {
<pre class="pre-scrollable" id="overview_system"></pre>
</div>
<hr>
- <p><button type="button" class="btn btn-outline-primary btn-sm button-expand" data-toggle="collapse" data-target="#collapse_timers_system">+</button><a href="#collapse_timers_system" data-toggle="collapse"><code>systemctl --system list-timers --all</code></a> <span class="float-right"><small>refreshed every <span id="status_system_refresh_interval">-</span> seconds</small></span></p>
+ <p><button type="button" class="btn btn-outline-primary btn-sm button-expand" data-toggle="collapse" data-target="#collapse_timers_system">+</button><a href="#collapse_timers_system" data-toggle="collapse"><code>systemctl --system list-timers --all</code></a></p>
<div class="collapse" id="collapse_timers_system">
<pre class="pre-scrollable" id="timers_system"></pre>
</div>
@@ -129,7 +130,7 @@ function add_user(name) {
<pre class="pre-scrollable" id="overview_user_${name}"></pre>
</div>
<hr>
- <p><button type="button" class="btn btn-outline-primary btn-sm button-expand" data-toggle="collapse" data-target="#collapse_timers_user_${name}">+</button><a href="#collapse_timers_user_${name}" data-toggle="collapse"><code>systemctl --user list-timers --all</code></a> <span class="float-right"><small>refreshed every ${status_refresh_interval_seconds} seconds</small></span></p>
+ <p><button type="button" class="btn btn-outline-primary btn-sm button-expand" data-toggle="collapse" data-target="#collapse_timers_user_${name}">+</button><a href="#collapse_timers_user_${name}" data-toggle="collapse"><code>systemctl --user list-timers --all</code></a></p>
<div class="collapse" id="collapse_timers_user_${name}">
<pre class="pre-scrollable" id="timers_user_${name}"></pre>
</div>
@@ -192,7 +193,7 @@ function loop_status() {
setInterval(function() {
refresh_status();
}, status_refresh_interval_seconds * 1000);
- $('#status_system_refresh_interval').text(status_refresh_interval_seconds);
+ $('#status_refresh_interval').text(status_refresh_interval_seconds);
}
function main() {