diff options
author | Justin Nuß <justin.nuss@hmmh.de> | 2014-07-22 14:20:32 +0200 |
---|---|---|
committer | Justin Nuß <justin.nuss@hmmh.de> | 2014-07-22 14:20:32 +0200 |
commit | ccca60a5a18c17baa40d7191c9ab6dc75854e25f (patch) | |
tree | f09d6f4d2cae154bad2bbfcfb36de133fff7ea59 | |
parent | 536f65b8ad700dc919295562dd72d5d4ea750506 (diff) | |
download | gitea-ccca60a5a18c17baa40d7191c9ab6dc75854e25f.tar.gz gitea-ccca60a5a18c17baa40d7191c9ab6dc75854e25f.zip |
Fix issue #288. Only show label form if repository collaborator/admin
-rw-r--r-- | templates/repo/issue/list.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 0fae3eb663..ffbdcc8379 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -26,6 +26,7 @@ <a class="del pull-right" href="#" data-id="{{.Id}}"><i class="fa fa-times-circle-o"></i></a> </li> {{end}} + {{if or .IsRepositoryOwner .IsAdmin}} <li class="label-change-li" style="display: none"> <form id="label-change-form" action="{{$.RepoLink}}/issues/labels/edit" method="post"> {{.CsrfTokenHtml}} @@ -41,7 +42,9 @@ </div> </form> </li> + {{end}} </ul> + {{if or .IsRepositoryOwner .IsAdmin}} <button class="btn btn-default btn-block label-button" id="label-manage-btn">Manage Labels</button> <hr/> <form id="label-add-form" action="{{$.RepoLink}}/issues/labels/new" method="post"> @@ -57,6 +60,7 @@ <button class="btn btn-default btn-sm">Create</button> </div> </form> + {{end}} </div> </div> <div class="col-md-9"> |