Merge pull request #947 from keatonrow/add-anchors-to-status-h2s

Add IDs to H2 tags to allow anchored linking
This commit is contained in:
Julius Volz 2015-07-30 22:38:12 +02:00
commit 9be9b98dcc

View file

@ -2,7 +2,7 @@
{{define "content"}} {{define "content"}}
<div class="container-fluid"> <div class="container-fluid">
<h2>Runtime Information</h2> <h2 id="runtime">Runtime Information</h2>
<table class="table table-condensed table-bordered table-striped table-hover"> <table class="table table-condensed table-bordered table-striped table-hover">
<tbody> <tbody>
<tr> <tr>
@ -12,7 +12,7 @@
</tbody> </tbody>
</table> </table>
<h2>Build Information</h2> <h2 id="buildinformation">Build Information</h2>
<table class="table table-condensed table-bordered table-striped table-hover"> <table class="table table-condensed table-bordered table-striped table-hover">
<tbody> <tbody>
{{range $key, $value := .Info}} {{range $key, $value := .Info}}
@ -24,13 +24,13 @@
</tbody> </tbody>
</table> </table>
<h2>Configuration</h2> <h2 id="configuration">Configuration</h2>
<pre>{{.Status.Config}}</pre> <pre>{{.Status.Config}}</pre>
<h2>Rules</h2> <h2 id="rules">Rules</h2>
<pre>{{range call .Status.Rules}}{{.HTMLSnippet pathPrefix}}<br/>{{end}}</pre> <pre>{{range call .Status.Rules}}{{.HTMLSnippet pathPrefix}}<br/>{{end}}</pre>
<h2>Targets</h2> <h2 id="targets">Targets</h2>
<table class="table table-condensed table-bordered table-striped table-hover"> <table class="table table-condensed table-bordered table-striped table-hover">
{{range $job, $pool := call .Status.TargetPools}} {{range $job, $pool := call .Status.TargetPools}}
<thead> <thead>
@ -85,7 +85,7 @@
{{end}} {{end}}
</table> </table>
<h2>Startup Flags</h2> <h2 id="startupflags">Startup Flags</h2>
<table class="table table-condensed table-bordered table-striped table-hover"> <table class="table table-condensed table-bordered table-striped table-hover">
<tbody> <tbody>
{{range $key, $value := .Status.Flags}} {{range $key, $value := .Status.Flags}}