From 1b9cbaf842978d0b262292d6d0c1ba2b1056c447 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Wed, 24 Jul 2013 12:37:51 +0200 Subject: [PATCH] Bootstrappify remaining status pages. --- web/static/css/graph.css | 25 +++++++ web/static/css/prometheus.css | 54 ++------------- web/templates/databases.html | 67 +++++++++--------- web/templates/status.html | 123 +++++++++++++++------------------- 4 files changed, 120 insertions(+), 149 deletions(-) diff --git a/web/static/css/graph.css b/web/static/css/graph.css index b8c190789..41b942812 100644 --- a/web/static/css/graph.css +++ b/web/static/css/graph.css @@ -176,3 +176,28 @@ select name="insert_metric" { .config label.checkbox { padding-top: 0; } + +.grouping_box { + position: relative; + padding: 0 5px 0 5px; + background-color: #fff; + border: 1px solid #ccc; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + margin: 0 8px 2px 8px; +} + +.grouping_box .head, .eval_stats { + display: inline-block; + vertical-align: top; +} + +.grouping_box .head .opts { + float: right; +} + +input[name="end_input"], input[name="range_input"] { + margin-left: -4px; + margin-right: -4px; +} diff --git a/web/static/css/prometheus.css b/web/static/css/prometheus.css index 035153a12..7dacd520b 100644 --- a/web/static/css/prometheus.css +++ b/web/static/css/prometheus.css @@ -2,52 +2,14 @@ body { padding-top: 40px; } +th.job_header { + font-size: 20px; + padding-top: 10px; + padding-bottom: 10px; +} + .error_text { - background-color: #f2dede; - border: 1px solid #c0a0a0; - padding: 0 2px 0 2px; -} - -h2 { - margin-left: 8px; -} - -.grouping_box { - position: relative; - padding: 0 5px 0 5px; - background-color: #fff; - border: 1px solid #ccc; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - margin: 0 8px 2px 8px; -} - -.grouping_box .head, .eval_stats { - display: inline-block; - vertical-align: top; -} - -.grouping_box .head .opts { - float: right; -} - -table tbody th { - text-align: left; -} - -input { - margin: 0; - border: 1px solid gray; -} - -select { - z-index: 10; -} - -input[name=end_input], input[name=range_input] { - margin-left: -4px; - margin-right: -4px; + padding: 0 4px 0 4px; } /* @@ -60,5 +22,3 @@ div.navbar { .literal_output td { font-family: monospace; } - - diff --git a/web/templates/databases.html b/web/templates/databases.html index f2be7230e..045222964 100644 --- a/web/templates/databases.html +++ b/web/templates/databases.html @@ -1,39 +1,38 @@ {{define "head"}}{{end}} {{define "content"}} -

Database Information

-
- {{range .States}} -
-

{{.Name}}

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Path{{.Path}}
Last Refreshed{{.LastRefreshed}}
Type{{.Type}}
Approximate Size{{.ApproximateSize}}
Low Level Status
{{.LowLevelStatus}}
SSTable Status
{{.SSTablesStatus}}
+
+

Database Information

+ {{range .States}} +

{{.Name}}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Path{{.Path}}
Last Refreshed{{.LastRefreshed}}
Type{{.Type}}
Approximate Size{{.ApproximateSize}}
Low Level Status
{{.LowLevelStatus}}
SSTable Status
{{.SSTablesStatus}}
+ {{end}}
- {{end}} {{end}} diff --git a/web/templates/status.html b/web/templates/status.html index 5f429226f..59ef11975 100644 --- a/web/templates/status.html +++ b/web/templates/status.html @@ -1,49 +1,40 @@ {{define "head"}}{{end}} {{define "content"}} +

Runtime Information

-
- - - - - - - -
Uptime{{.Birth}}
-
+ + + + + + + +
Uptime{{.Birth}}
+

Build Information

-
- - - {{range $key, $value := .BuildInfo}} - - - - - {{end}} - -
{{$key}}{{$value}}
-
+ + + {{range $key, $value := .BuildInfo}} + + + + + {{end}} + +
{{$key}}{{$value}}

Configuration

-
-
-{{.Config}}
-    
-
+
{{.Config}}

Rules

-
{{range .RuleManager.Rules}}{{.HTMLSnippet}}
{{end}}
-

Targets

-
{{range $job, $pool := .TargetPools}} -

{{$job}}

- +
+ @@ -69,7 +60,7 @@ @@ -77,43 +68,39 @@
{{$job}}
Endpoint State {{if .LastError}} - {{.LastError}} + {{.LastError}} {{end}}
{{end}} -

Curation

-
- - - - - - {{if .Curation.Active}} - - - - - - - - - - - - - {{end}} -
Active{{.Curation.Active}}
Processor Name{{.Curation.Name}}
Recency Limit{{.Curation.Limit}}
Current Fingerprint{{.Curation.Fingerprint}}
-
+ + + + + + {{if .Curation.Active}} + + + + + + + + + + + + + {{end}} +
Active{{.Curation.Active}}
Processor Name{{.Curation.Name}}
Recency Limit{{.Curation.Limit}}
Current Fingerprint{{.Curation.Fingerprint}}

Startup Flags

-
- - - {{range $key, $value := .Flags}} - - - - - {{end}} - -
{{$key}}{{$value}}
-
+ + + {{range $key, $value := .Flags}} + + + + + {{end}} + +
{{$key}}{{$value}}
+
{{end}}