From 64ddbff99e0efb3965b48bff6f9dac6957180192 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 11 May 2014 20:51:55 +0200 Subject: Change to grid presentation --- static/monit.css | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ templates/index.html | 22 +++++++++++++++------- 2 files changed, 65 insertions(+), 7 deletions(-) create mode 100644 static/monit.css diff --git a/static/monit.css b/static/monit.css new file mode 100644 index 0000000..c27b834 --- /dev/null +++ b/static/monit.css @@ -0,0 +1,50 @@ +* { + border: 0 none; + margin: 0; + padding: 0; +} + +body { + font-family: "Lucida Grande", Verdana, "Bitstream Vera Sans", "Lucida Sans Unicode", sans-serif; + background: #eeeef6; + line-height: 26px; +} + +h1 { + padding: 1em; + text-align: center; + color: #2f2f2f; +} + +div.gridcontainer { + width: 70%; + margin: 40px auto; +} + +div.footer { + clear: both; + margin: 10px; + padding: 25px; + text-align: center; +} + +ul.statusgrid { + list-style: none outside none; +} + +ul.statusgrid li { + float: left; + padding: 10px; + background: #dddded; + border: 3px solid #cccccc; + position: relative; + width: 10em; + height: 10em; + text-align: center; +} + +p { + color: #434343; + text-align: center; +} + diff --git a/templates/index.html b/templates/index.html index 78a4696..d198962 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,32 +2,40 @@ ODR-DabMux Monitoring - +

Statistics for ODR-DabMux running on '{{ name }}'

- - +
+
+ {% endfor %} -
Input NameState
{{ inp.name }}: +
  • + {{ inp.name }} +
    {% if inp.state == "NoData" %} No Date +
    No Data {% elif inp.state == "Unstable" %} Unstable +
    Unstable {% elif inp.state == "Silent" %} Unstable +
    No audio {% elif inp.state == "Streaming" %} Unstable {% else %} Unknown state {{ inp.state }} ! {% endif %} -
  • -

    generated on {{ date }}

    + + + -- cgit v1.2.3