From f46b3a36fb59563a635b0cc7cb79c35179418f1b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Apr 2022 01:09:24 +0200 Subject: index.html: use Bootstrap utilities --- index.html | 43 +++++++++++++------------------------------ 1 file changed, 13 insertions(+), 30 deletions(-) diff --git a/index.html b/index.html index 55bfad2..5a4f56f 100644 --- a/index.html +++ b/index.html @@ -5,30 +5,13 @@ - -
-
+

-

-

refreshed every - seconds

+

refreshed every - seconds

@@ -40,32 +23,32 @@ td > code {

-

top refreshed every - seconds

+

top refreshed every - seconds


           

-

docker ps -a

+

docker ps -a

No data has been loaded yet.

-

systemctl --system list-units --failed

+

systemctl --system list-units --failed


           

-

systemctl --system status

+

systemctl --system status


           

-

systemctl --system list-timers --all

+

systemctl --system list-timers --all


           

-

journalctl --system -b --lines=20

+

journalctl --system -b --lines=20


           
@@ -194,8 +177,8 @@ function make_docker_table_header() { } function make_docker_table_row(info) { - let success_mark = $('', {'class': 'mark-success'}).html('✔'); - let failure_mark = $('', {'class': 'mark-failure'}).html('✘'); + let success_mark = $('', {'class': 'text-success'}).html('✔'); + let failure_mark = $('', {'class': 'text-danger'}).html('✘'); let success_class = 'table-light'; let failure_class = 'table-warning'; @@ -208,8 +191,8 @@ function make_docker_table_row(info) { return $('', {'class': _class}) .append($('').html(mark)) - .append($('').append($('').text(info.name))) - .append($('').append($('').text(info.image))) + .append($('').append($('', {'class': 'text-reset'}).text(info.name))) + .append($('').append($('', {'class': 'text-reset'}).text(info.image))) .append($('').text(info.pretty_status)); } @@ -261,7 +244,7 @@ function create_user_block(name, lbl, cmd) { let pre_id = `${lbl}_user_${name}`; let collapse_id = `collapse_${pre_id}`; let button_params = { - 'class': 'btn btn-outline-primary btn-sm button-expand', + 'class': 'btn btn-outline-primary btn-sm mr-3', 'data-toggle': 'collapse', 'data-target': '#' + collapse_id }; -- cgit v1.2.3