diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-11-14 17:52:18 -0600 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-11-15 00:52:18 +0100 |
commit | 06a8504c784fe404bcae92028515add816383729 (patch) | |
tree | 66bade651d9bc6f18165ef089f501139f4ecbd38 /modules/templates/helper.go | |
parent | dd1beee2ef907527d0b046f78bab70b2bd868c55 (diff) | |
download | gitea-06a8504c784fe404bcae92028515add816383729.tar.gz gitea-06a8504c784fe404bcae92028515add816383729.zip |
Update dashboard context for PR reviews (#8995)
* Update dashboard context for PR reviews
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Only append head action if it has content or is approval/rejection
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r-- | modules/templates/helper.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 1347835b80..6aa429ee14 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -555,6 +555,10 @@ func ActionIcon(opType models.ActionType) string { return "issue-reopened" case models.ActionMirrorSyncPush, models.ActionMirrorSyncCreate, models.ActionMirrorSyncDelete: return "repo-clone" + case models.ActionApprovePullRequest: + return "eye" + case models.ActionRejectPullRequest: + return "x" default: return "invalid type" } |