1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

Improve ui for builds

This commit is contained in:
Lunny Xiao
2022-10-19 22:31:05 +08:00
committed by Jason Song
parent d69423a3b0
commit 3518c098b9
6 changed files with 75 additions and 47 deletions

View File

@@ -472,6 +472,9 @@ func NewFuncMap() []template.FuncMap {
curBranch,
)
},
"RefShortName": func(ref string) string {
return git.RefName(ref).ShortName()
},
}}
}