summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Anderson <james@jamesanderson.me>2015-08-08 17:16:11 -0500
committerJames Anderson <james@jamesanderson.me>2015-08-08 17:16:11 -0500
commitfc63422cafe48b055bea52f7cc03fca0d8e0fef1 (patch)
tree19335e61c1251e56a86a86bd800418ece24c6014
parentb1f08d3218cd83ae854fbfe98a39b6d2f0fa47e3 (diff)
downloadgitea-fc63422cafe48b055bea52f7cc03fca0d8e0fef1.tar.gz
gitea-fc63422cafe48b055bea52f7cc03fca0d8e0fef1.zip
Add check to see if comments on an issue are by the repo owner
-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}}