forked from forgejo/forgejo
More on diff page
This commit is contained in:
parent
78979c6d4c
commit
ed9b7d2db9
5 changed files with 45 additions and 18 deletions
|
@ -539,3 +539,16 @@ func ActionDesc(act Actioner, avatarLink string) string {
|
|||
return "invalid type"
|
||||
}
|
||||
}
|
||||
|
||||
func DiffTypeToStr(diffType int) string {
|
||||
switch diffType {
|
||||
case 1:
|
||||
return "add"
|
||||
case 2:
|
||||
return "modify"
|
||||
case 3:
|
||||
return "del"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue