mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Unifies commit list in repository commit table and wiki revision page (#7907)
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
This commit is contained in:
@@ -246,6 +246,18 @@ func NewFuncMap() []template.FuncMap {
|
||||
"MirrorFullAddress": mirror_service.AddressNoCredentials,
|
||||
"MirrorUserName": mirror_service.Username,
|
||||
"MirrorPassword": mirror_service.Password,
|
||||
"CommitType": func(commit interface{}) string {
|
||||
switch commit.(type) {
|
||||
case models.SignCommitWithStatuses:
|
||||
return "SignCommitWithStatuses"
|
||||
case models.SignCommit:
|
||||
return "SignCommit"
|
||||
case models.UserCommit:
|
||||
return "UserCommit"
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
},
|
||||
}}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user