summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2020-11-28 23:52:29 +0800
committerGitHub <noreply@github.com>2020-11-28 17:52:29 +0200
commit1e5247d424de7f8a480c73b0b72119ae5482edf1 (patch)
tree350de4758a29357766273d049bc830535448e5d4 /templates
parent48c9865fce915c28fe3759cfb1b75c65feac2f55 (diff)
downloadgitea-1e5247d424de7f8a480c73b0b72119ae5482edf1.tar.gz
gitea-1e5247d424de7f8a480c73b0b72119ae5482edf1.zip
ui: show 'owner' tag for real owner (#13689)
* ui: show 'owner' tag for real owner Signed-off-by: a1012112796 <1012112796@qq.com> * Update custom/conf/app.example.ini * simplify logic fix logic fix a small bug about original author * remove system manager tag Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index d1e380ebf0..2bd2d86430 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -43,7 +43,7 @@
</div>
<div class="comment-header-right actions df ac">
{{if not $.Repository.IsArchived}}
- {{if eq .PosterID .Issue.PosterID }}
+ {{if or (and (eq .PosterID .Issue.PosterID) (eq .Issue.OriginalAuthorID 0)) (eq .Issue.OriginalAuthorID .OriginalAuthorID) }}
<div class="ui basic label">
{{$.i18n.Tr "repo.issues.poster"}}
</div>