Skip to content

Commit

Permalink
Fix console templates (prometheus#5228)
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
  • Loading branch information
sylr authored and brian-brazil committed Feb 18, 2019
1 parent b41d6d5 commit 87c79b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions console_libraries/menu.lib
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 3 additions & 2 deletions console_libraries/prom.lib
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions consoles/prometheus.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h1>Prometheus</h1>
{{ else }}
<tr><td colspan=4>No devices found.</td></tr>
{{ end }}
</table>

{{ template "prom_content_tail" . }}

Expand Down

0 comments on commit 87c79b0

Please sign in to comment.