summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-08-09 10:23:34 +0800
committer无闻 <u@gogs.io>2015-08-09 10:23:34 +0800
commit56a8d573b0346dce9f6843d61997e5794bc16e4e (patch)
treeef9cac657789aaf6c0b8eff2e1f898fdd4781838 /templates
parentaede5cdb04fdbf74d9c602062fdece9f408e90f4 (diff)
parentfc63422cafe48b055bea52f7cc03fca0d8e0fef1 (diff)
downloadgitea-56a8d573b0346dce9f6843d61997e5794bc16e4e.tar.gz
gitea-56a8d573b0346dce9f6843d61997e5794bc16e4e.zip
Merge pull request #1451 from jamesa/fix-owner-tag-on-issues
Add check to see if comments on an issue are by the repo owner
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl
index 61adfe6197..2889856f3a 100644
--- a/templates/repo/issue/view.tmpl
+++ b/templates/repo/issue/view.tmpl
@@ -69,7 +69,9 @@
<a href="{{AppSubUrl}}/{{.Poster.Name}}" class="user">{{.Poster.Name}}</a> commented <span class="time">{{TimeSince .Created $.Lang}}</span>
<!-- <a class="issue-comment-del pull-right issue-action" href="#" title="Edit Comment"><i class="fa fa-times-circle"></i></a>
<a class="issue-comment-edit pull-right issue-action" href="#" title="Remove Comment" data-url="{remove-link}"><i class="fa fa-edit"></i></a> -->
+ {{if eq .Poster.Id $.Owner.Id}}
<span class="role label label-default pull-right">Owner</span>
+ {{end}}
</div>
<div class="panel-body markdown">
{{if len .Content}}