2017-11-17 07:18:34 -08:00
|
|
|
{{define "head"}}
|
|
|
|
<link type="text/css" rel="stylesheet" href="{{ pathPrefix }}/static/css/rules.css?v={{ buildVersion }}">
|
|
|
|
{{end}}
|
2016-05-13 08:59:59 -07:00
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<div class="container-fluid">
|
2018-02-12 23:51:34 -08:00
|
|
|
<h2>Rules</h2>
|
2017-11-17 07:18:34 -08:00
|
|
|
<table class="table table-bordered">
|
|
|
|
{{range .RuleGroups}}
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-07-18 08:34:41 -07:00
|
|
|
<td><h2><a href="#{{reReplaceAll "([^a-zA-Z0-9])" "$1" .Name}}" name="{{reReplaceAll "([^a-zA-Z0-9])" "$1" .Name}}">{{.Name}}</h2></td>
|
2018-07-25 09:25:43 -07:00
|
|
|
<td><h2>{{humanizeDuration .GetEvaluationDuration.Seconds}}</h2></td>
|
2017-11-17 07:18:34 -08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td style="font-weight:bold">Rule</td>
|
|
|
|
<td style="font-weight:bold">Evaluation Time</td>
|
|
|
|
</tr>
|
|
|
|
{{range .Rules}}
|
|
|
|
<tr>
|
|
|
|
<td class="rule_cell">{{.HTMLSnippet pathPrefix}}</td>
|
2018-07-25 09:25:43 -07:00
|
|
|
<td>{{humanizeDuration .GetEvaluationDuration.Seconds}}</td>
|
2017-11-17 07:18:34 -08:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
2018-02-12 23:51:34 -08:00
|
|
|
{{else}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
No rules defined
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-11-17 07:18:34 -08:00
|
|
|
{{end}}
|
2018-02-12 23:51:34 -08:00
|
|
|
</tbody>
|
2017-11-17 07:18:34 -08:00
|
|
|
</table>
|
2016-05-13 08:59:59 -07:00
|
|
|
</div>
|
|
|
|
{{end}}
|