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 /templates | |
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 'templates')
-rw-r--r-- | templates/user/dashboard/feeds.tmpl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 9c404c9fde..48cdb49c15 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -61,6 +61,12 @@ {{$.i18n.Tr "action.mirror_sync_create" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}} {{else if eq .GetOpType 20}} {{$.i18n.Tr "action.mirror_sync_delete" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 21}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.approve_pull_request" .GetRepoLink $index .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 22}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.reject_pull_request" .GetRepoLink $index .ShortRepoPath | Str2html}} {{end}} </p> {{if or (eq .GetOpType 5) (eq .GetOpType 18)}} @@ -80,7 +86,7 @@ <span class="text truncate issue title has-emoji">{{index .GetIssueInfos 1}}</span> {{else if eq .GetOpType 7}} <span class="text truncate issue title has-emoji">{{index .GetIssueInfos 1}}</span> - {{else if eq .GetOpType 10}} + {{else if or (eq .GetOpType 10) (eq .GetOpType 21) (eq .GetOpType 22)}} <a href="{{.GetCommentLink}}" class="text truncate issue title has-emoji">{{.GetIssueTitle}}</a> <p class="text light grey has-emoji">{{index .GetIssueInfos 1}}</p> {{else if eq .GetOpType 11}} |