Fix console templates (#5228)

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
This commit is contained in:
Sylvain Rabot 2019-02-18 14:14:58 +01:00 committed by Brian Brazil
parent b41d6d54f2
commit 87c79b0c81
3 changed files with 6 additions and 4 deletions

View file

@ -19,8 +19,8 @@
<ul class="nav navbar-nav">
<li><a href="{{ pathPrefix }}/alerts">Alerts</a></li>
<li><a href="https://www.pagerduty.com/">PagerDuty</a></li>
</div>
</ul>
</ul>
</div>
</div>
</nav>
{{ end }}

View file

@ -17,8 +17,9 @@ var PATH_PREFIX = "{{ pathPrefix }}";
{{ end }}
{{/* Top of all pages. */}}
{{ define "head" }}
<html>
{{ define "head" -}}
<!doctype html>
<html lang="en">
<head>
{{ template "prom_console_head" }}
</head>

View file

@ -27,6 +27,7 @@
{{ else }}
<tr><td colspan=4>No devices found.</td></tr>
{{ end }}
</table>
{{ template "prom_content_tail" . }}