From bfbbd762c36a445e71af3eb78a7d43fa9b12ab01 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Wed, 1 Mar 2017 18:17:07 -0600 Subject: [PATCH] formatting fixes for on mobile --- www/pocwww/pocwww/templates/config.jinja2 | 205 ++++++++++--------- www/pocwww/pocwww/templates/dashboard.jinja2 | 48 ++--- www/pocwww/pocwww/templates/layout.jinja2 | 2 +- 3 files changed, 129 insertions(+), 126 deletions(-) diff --git a/www/pocwww/pocwww/templates/config.jinja2 b/www/pocwww/pocwww/templates/config.jinja2 index f023411..6d5c8c0 100644 --- a/www/pocwww/pocwww/templates/config.jinja2 +++ b/www/pocwww/pocwww/templates/config.jinja2 @@ -4,111 +4,114 @@ {% block content %}
-
-
-

Well Configuration

-
-
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
-
- - -
-

Taper Setup

-
- - - - - - - - - - - - - {% for taper in config.tapers %} - - - - - - - - - {% endfor %} - - -
TaperLengthDiameterMaterialDamping Factor
{{loop.index}}
- -
- - - -{% endblock content %} + + {% endblock content %} diff --git a/www/pocwww/pocwww/templates/dashboard.jinja2 b/www/pocwww/pocwww/templates/dashboard.jinja2 index 5e4b641..e5415d8 100644 --- a/www/pocwww/pocwww/templates/dashboard.jinja2 +++ b/www/pocwww/pocwww/templates/dashboard.jinja2 @@ -33,23 +33,23 @@ {% for t in tag_values %} - - {{t._id}} - - - - {{t.value | round(3)}} - {{t.timestamp | datetime('short')}} - - + + {{t._id}} + + + + {{t.value | round(3)}} + {{t.timestamp | datetime('short')}} + + {% endfor %} @@ -67,14 +67,14 @@

{{card.timestamp | datetime('long')}}

- {% else %} -

No card data yet...

- {% endif %} + {% else %} +

No card data yet...

+ {% endif %} +
-
- -{% endblock content %} + + {% endblock content %} diff --git a/www/pocwww/pocwww/templates/layout.jinja2 b/www/pocwww/pocwww/templates/layout.jinja2 index 38161cf..ae2bc1b 100644 --- a/www/pocwww/pocwww/templates/layout.jinja2 +++ b/www/pocwww/pocwww/templates/layout.jinja2 @@ -118,7 +118,7 @@ function setRunStatus(data){ $("#runstatus").text(data.runstatus.status); $("#db-runstatus").text(data.runstatus.status); - var ts_date = new Date(Date.parse(data.runstatus.timestamp)); + var ts_date = new Date(Date.parse(data.runstatus.timestamp.replace(" ", "T"))); $("#runstatustimestamp").text(ts_date.toString()); $("#db-runstatustimestamp").text(ts_date.toString()); }