summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b31c61)
raw | patch | inline | side by side (parent: 9b31c61)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 21 Nov 2014 22:54:53 +0000 (23:54 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 21 Nov 2014 22:54:53 +0000 (23:54 +0100) |
static/style/main.css | patch | blob | history | |
templates/host.tmpl | patch | blob | history | |
templates/metric.tmpl | patch | blob | history | |
templates/service.tmpl | patch | blob | history |
diff --git a/static/style/main.css b/static/style/main.css
index d358e9bd259241df39cfcad581f7f003a64d86de..4ad9665675b10f8cf988f56c81f96129ed54d97b 100644 (file)
--- a/static/style/main.css
+++ b/static/style/main.css
table.results th, table.results td {
border: 1px solid #1e466d;
padding: 3px;
+ text-align: left;
vertical-align: top;
+ word-wrap: break-word;
+ white-space: normal;
+}
+
+table.results td.value {
+ word-break: break-all;
}
diff --git a/templates/host.tmpl b/templates/host.tmpl
index 6b56446492b635ad7364b03ce0c1c941432d2b95..6193070e06be7acc2043a63304553f5025f2c93a 100644 (file)
--- a/templates/host.tmpl
+++ b/templates/host.tmpl
{{if len .Attributes}}
<tr><th colspan="2">Attributes</th></tr>
{{range .Attributes}}
- <tr><td>{{.Name}}</td><td>{{.Value}}</td></tr>
+ <tr><td>{{.Name}}</td><td class="value">{{.Value}}</td></tr>
{{end}}
{{else}}
<tr><th colspan="2">No attributes</th></tr>
diff --git a/templates/metric.tmpl b/templates/metric.tmpl
index a2648017ec47b18e2678dc03979e33a832b245be..40be05c14fa7a3aa02b985e7282ec80f214e0fbf 100644 (file)
--- a/templates/metric.tmpl
+++ b/templates/metric.tmpl
{{if len $m.Attributes}}
<tr><th colspan="2">Attributes</th></tr>
{{range $m.Attributes}}
- <tr><td>{{.Name}}</td><td>{{.Value}}</td></tr>
+ <tr><td>{{.Name}}</td><td class="value">{{.Value}}</td></tr>
{{end}}
{{else}}
<tr><th colspan="2">No attributes</th></tr>
diff --git a/templates/service.tmpl b/templates/service.tmpl
index c5716daf951eb532401763842a3053b7725dc669..a232458b326ff125d084398a2c3511ca680ac452 100644 (file)
--- a/templates/service.tmpl
+++ b/templates/service.tmpl
{{if len $s.Attributes}}
<tr><th colspan="2">Attributes</th></tr>
{{range $s.Attributes}}
- <tr><td>{{.Name}}</td><td>{{.Value}}</td></tr>
+ <tr><td>{{.Name}}</td><td class="value">{{.Value}}</td></tr>
{{end}}
{{else}}
<tr><th colspan="2">No attributes</th></tr>