aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html/html.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/html/html.go')
-rw-r--r--pkg/html/html.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/html/html.go b/pkg/html/html.go
index 9a43b0dba..1199c5ab0 100644
--- a/pkg/html/html.go
+++ b/pkg/html/html.go
@@ -51,6 +51,14 @@ var Funcs = template.FuncMap{
"formatTagHash": formatTagHash,
"formatCommitTableTitle": formatCommitTableTitle,
"formatList": formatStringList,
+ "selectBisect": selectBisect,
+}
+
+func selectBisect(rep *dashapi.BugReport) *dashapi.BisectResult {
+ if rep.BisectFix != nil {
+ return rep.BisectFix
+ }
+ return rep.BisectCause
}
func link(url, text string) template.HTML {