(refs #464)Add new extension point to add buttons

This commit is contained in:
Naoki Takezoe
2014-08-10 05:42:06 +09:00
parent 098b18fe6d
commit 93536d3365
6 changed files with 38 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
@(active: String, create: Boolean, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
@(active: String, create: Boolean, repository: service.RepositoryService.RepositoryInfo,
buttons: List[plugin.PluginSystem.Button] = Nil)(implicit context: app.Context)
@import context._
@import view.helpers._
<ul class="nav nav-tabs pull-left fill-width">
@@ -7,6 +8,9 @@
@if(loginAccount.isDefined){
<li class="pull-right">
<div class="btn-group">
@buttons.map { button =>
<a class="btn btn-small" href="@button.href">@button.label</a>
}
@if(create){
<a class="btn btn-small btn-success" href="#" disabled="disabled">New Issue</a>
} else {