(refs #383)Disable "New Issue" button in the new issue creation page.

This commit is contained in:
Naoki Takezoe
2014-05-29 01:55:10 +09:00
parent a846c77c7e
commit 1e8224536b
6 changed files with 11 additions and 7 deletions

View File

@@ -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>
}