mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 04:13:53 +01:00
octicon fix in feeds
This commit is contained in:
parent
cceb3364bb
commit
bb1fbe4e70
1 changed files with 8 additions and 4 deletions
|
@ -210,14 +210,18 @@ type Actioner interface {
|
||||||
// and returns a icon class name.
|
// and returns a icon class name.
|
||||||
func ActionIcon(opType int) string {
|
func ActionIcon(opType int) string {
|
||||||
switch opType {
|
switch opType {
|
||||||
case 1, 8: // Create, transfer repository.
|
case 1, 8: // Create, transfer repository
|
||||||
return "repo"
|
return "repo"
|
||||||
case 5, 9: // Commit repository.
|
case 5, 9: // Commit repository
|
||||||
return "git-commit"
|
return "git-commit"
|
||||||
case 6: // Create issue.
|
case 6: // Create issue
|
||||||
return "issue-opened"
|
return "issue-opened"
|
||||||
case 10: // Comment issue.
|
case 7: // New pull request
|
||||||
|
return "git-pull-request"
|
||||||
|
case 10: // Comment issue
|
||||||
return "comment"
|
return "comment"
|
||||||
|
case 11: // Merge pull request
|
||||||
|
return "git-merge"
|
||||||
default:
|
default:
|
||||||
return "invalid type"
|
return "invalid type"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue