|
|
|
@ -777,7 +777,7 @@ type Actioner interface {
|
|
|
|
// ActionIcon accepts an action operation type and returns an icon class name.
|
|
|
|
// ActionIcon accepts an action operation type and returns an icon class name.
|
|
|
|
func ActionIcon(opType models.ActionType) string {
|
|
|
|
func ActionIcon(opType models.ActionType) string {
|
|
|
|
switch opType {
|
|
|
|
switch opType {
|
|
|
|
case models.ActionCreateRepo, models.ActionTransferRepo:
|
|
|
|
case models.ActionCreateRepo, models.ActionTransferRepo, models.ActionRenameRepo:
|
|
|
|
return "repo"
|
|
|
|
return "repo"
|
|
|
|
case models.ActionCommitRepo, models.ActionPushTag, models.ActionDeleteTag, models.ActionDeleteBranch:
|
|
|
|
case models.ActionCommitRepo, models.ActionPushTag, models.ActionDeleteTag, models.ActionDeleteBranch:
|
|
|
|
return "git-commit"
|
|
|
|
return "git-commit"
|
|
|
|
|