mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-13 08:55:50 +01:00
(refs #383)Disable "New Issue" button in the new issue creation page.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
@(active: String, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
||||
@(active: String, create: Boolean, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
||||
@import context._
|
||||
@import view.helpers._
|
||||
<ul class="nav nav-tabs pull-left fill-width">
|
||||
@@ -7,7 +7,11 @@
|
||||
@if(loginAccount.isDefined){
|
||||
<li class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-small btn-success" href="@url(repository)/issues/new">New Issue</a>
|
||||
@if(create){
|
||||
<a class="btn btn-small btn-success" href="#" disabled="disabled">New Issue</a>
|
||||
} else {
|
||||
<a class="btn btn-small btn-success" href="@url(repository)/issues/new">New Issue</a>
|
||||
}
|
||||
</div>
|
||||
</li>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user