summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8803633)
raw | patch | inline | side by side (parent: 8803633)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 22 Nov 2014 10:29:03 +0000 (11:29 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 22 Nov 2014 10:29:03 +0000 (11:29 +0100) |
templates/metric.tmpl | patch | blob | history |
diff --git a/templates/metric.tmpl b/templates/metric.tmpl
index 40be05c14fa7a3aa02b985e7282ec80f214e0fbf..d855356695e2962d9aa718f41bdd191b796ad1d5 100644 (file)
--- a/templates/metric.tmpl
+++ b/templates/metric.tmpl
<section>{{$m := index .Metrics 0}}
<h1>Metric {{$.Name}} — {{$m.Name}}</h1>
+{{if $m.Timeseries}}
<img src="/graph/{{urlquery $.Name}}/{{urlquery $m.Name}}" border="0" />
+{{end}}
<table class="results">
<tr><td><b>Host</b></td><td><a href="/host/{{urlquery $.Name}}">{{$.Name}}</a></td></tr>
<tr><td><b>Last update</b></td><td>{{$m.LastUpdate}}</td></tr>