Skip to content

Commit 26ef1dc

Browse files
author
Allen Ma
committed
Cleanup rules.html naming to fix template expansion failed - bug 3311
1 parent 830ac35 commit 26ef1dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/ui/templates/rules.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ <h2>Rules</h2>
1010
<thead>
1111
<tr>
1212
<td colspan="3"><h2><a href="#{{reReplaceAll "([^a-zA-Z0-9])" "$1" .Name}}" name="{{reReplaceAll "([^a-zA-Z0-9])" "$1" .Name}}">{{.Name}}</h2></td>
13-
<td><h2>{{if .GetEvaluationTimestamp.IsZero}}Never{{else}}{{since .GetEvaluationTimestamp}} ago{{end}}</h2></td>
14-
<td><h2>{{humanizeDuration .GetEvaluationDuration.Seconds}}</h2></td>
13+
<td><h2>{{if .GetLastEvaluation.IsZero}}Never{{else}}{{since .GetLastEvaluation}} ago{{end}}</h2></td>
14+
<td><h2>{{humanizeDuration .GetEvaluationTime.Seconds}}</h2></td>
1515
</tr>
1616
</thead>
1717
<tbody>
@@ -36,9 +36,9 @@ <h2>Rules</h2>
3636
{{end}}
3737
</td>
3838
<td>
39-
{{if .GetEvaluationTimestamp.IsZero}}Never{{else}}{{since .GetEvaluationTimestamp}} ago{{end}}
39+
{{if .GetLastEvaluation.IsZero}}Never{{else}}{{since .GetLastEvaluation}} ago{{end}}
4040
</td>
41-
<td>{{humanizeDuration .GetEvaluationDuration.Seconds}}</td>
41+
<td>{{humanizeDuration .GetEvaluationTime.Seconds}}</td>
4242
</tr>
4343
{{end}}
4444
{{else}}

0 commit comments

Comments
 (0)