diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-07-22 16:13:22 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-07-22 16:13:22 -0400 |
commit | 8e4debe99d3c11c8604d446113331e91d7c6d198 (patch) | |
tree | ee2abacb3316461b8701d464bf32f7409365b7e9 /templates | |
parent | dc2e1403603789e438ced9ac7dceb736d70f426c (diff) | |
parent | ccca60a5a18c17baa40d7191c9ab6dc75854e25f (diff) | |
download | gitea-8e4debe99d3c11c8604d446113331e91d7c6d198.tar.gz gitea-8e4debe99d3c11c8604d446113331e91d7c6d198.zip |
Merge pull request #297 from nuss-justin/issue/288
Fix issue #288. Only show label form if repository collaborator/admin
Diffstat (limited to 'templates')
-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"> |