From fc63422cafe48b055bea52f7cc03fca0d8e0fef1 Mon Sep 17 00:00:00 2001 From: James Anderson <james@jamesanderson.me> Date: Sat, 8 Aug 2015 17:16:11 -0500 Subject: [PATCH] Add check to see if comments on an issue are by the repo owner --- templates/repo/issue/view.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl index 61adfe619..2889856f3 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}}