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.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/html/html.go b/pkg/html/html.go
index d9e4e5881..8dc075bb6 100644
--- a/pkg/html/html.go
+++ b/pkg/html/html.go
@@ -12,6 +12,7 @@ import (
"time"
"github.com/google/syzkaller/dashboard/dashapi"
+ "github.com/google/syzkaller/pkg/vcs"
)
func CreateGlob(glob string) *template.Template {
@@ -40,6 +41,7 @@ var Funcs = template.FuncMap{
"formatList": formatStringList,
"selectBisect": selectBisect,
"dereference": dereferencePointer,
+ "commitLink": commitLink,
}
func selectBisect(rep *dashapi.BugReport) *dashapi.BisectResult {
@@ -185,3 +187,7 @@ func dereferencePointer(v interface{}) interface{} {
}
return v
}
+
+func commitLink(repo, commit string) string {
+ return vcs.CommitLink(repo, commit)
+}