From 71242718eb9d8ed920ac2e70677ae54bf3d140ea Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 9 Nov 2016 20:20:17 +0800 Subject: webui: various small updates --- fg21sim/webui/app.py | 3 +++ fg21sim/webui/static/css/main.css | 4 ++++ fg21sim/webui/templates/configs.html | 27 +++++++++++++++++++-------- fg21sim/webui/templates/console.html | 10 +++++----- fg21sim/webui/templates/header.html | 4 ++-- fg21sim/webui/templates/index.html | 1 + 6 files changed, 34 insertions(+), 15 deletions(-) (limited to 'fg21sim') diff --git a/fg21sim/webui/app.py b/fg21sim/webui/app.py index 4fa0a05..8199aa7 100644 --- a/fg21sim/webui/app.py +++ b/fg21sim/webui/app.py @@ -31,6 +31,9 @@ _settings = { } +# FIXME: +# * Subclass on `tornado.web.Application` +# * hold the attributes (e.g., configs, console) ?? def make_application(**kwargs): settings = _settings settings.update(kwargs) diff --git a/fg21sim/webui/static/css/main.css b/fg21sim/webui/static/css/main.css index 7a673a6..a574990 100644 --- a/fg21sim/webui/static/css/main.css +++ b/fg21sim/webui/static/css/main.css @@ -234,6 +234,8 @@ input:focus { .label { display: inline; padding: 0.2rem 0.6rem 0.3rem 0.6rem; + margin-left: 0.5rem; + margin-right: 0.5rem; color: #fff; font-weight: bold; line-height: 1; @@ -338,6 +340,8 @@ button, .btn { margin-left: 0.5rem; margin-right: 0.5rem; + font-size: 2.2rem; + vertical-align: middle; cursor: pointer; } diff --git a/fg21sim/webui/templates/configs.html b/fg21sim/webui/templates/configs.html index e3ec2f5..f1bb640 100644 --- a/fg21sim/webui/templates/configs.html +++ b/fg21sim/webui/templates/configs.html @@ -8,6 +8,25 @@

Configurations


+

+ + Configurations status: + + + N/A + + +

+ +

+ + + + +

+
@@ -22,14 +41,6 @@ -
- - - - -
diff --git a/fg21sim/webui/templates/console.html b/fg21sim/webui/templates/console.html index 00a2b02..5236a6e 100644 --- a/fg21sim/webui/templates/console.html +++ b/fg21sim/webui/templates/console.html @@ -9,14 +9,14 @@

- - Simulation status: - N/A + + Simulation status: + N/A

- - + +

diff --git a/fg21sim/webui/templates/header.html b/fg21sim/webui/templates/header.html index d96dc48..e1cd367 100644 --- a/fg21sim/webui/templates/header.html +++ b/fg21sim/webui/templates/header.html @@ -13,8 +13,8 @@ Foregrounds Simulation for EoR 21cm Signal Detection - - N/A + + N/A diff --git a/fg21sim/webui/templates/index.html b/fg21sim/webui/templates/index.html index 4c1dff1..b23c1b8 100644 --- a/fg21sim/webui/templates/index.html +++ b/fg21sim/webui/templates/index.html @@ -31,5 +31,6 @@ {% block extra_script %} + {% end %} -- cgit v1.2.2