(refs #1161)Add new extension point to add global menu

This commit is contained in:
Naoki Takezoe
2016-04-03 00:50:57 +09:00
parent 1968bf871a
commit 102a02d527
3 changed files with 40 additions and 10 deletions

View File

@@ -71,6 +71,11 @@
<input type="hidden" name="repository" value="@repository.name"/>
}
}
@gitbucket.core.plugin.PluginRegistry().getGlobalMenus.map { menu =>
@menu.createLink(context).map { case (label, link) =>
<a href="@path/@link" class="global-header-menu">@label</a>
}
}
@if(loginAccount.isDefined){
<div class="pull-right" style="margin-top: 6px;">
<div class="btn-group" style="margin-right: 8px;">