Add repositoryHeaderComponent extension point

This commit is contained in:
Naoki Takezoe
2017-07-08 02:58:28 +09:00
parent b278bfd159
commit 73ed69a4ad
4 changed files with 27 additions and 4 deletions

View File

@@ -74,6 +74,11 @@
@gitbucket.core.helper.html.information(info)
@gitbucket.core.helper.html.error(error)
<div class="head">
<div class="pull-right">
@gitbucket.core.plugin.PluginRegistry().getRepositoryHeaders.map { repositoryHeaderComponent =>
@repositoryHeaderComponent(repository, context)
}
</div>
@gitbucket.core.helper.html.repositoryicon(repository, true)
<a href="@helpers.url(repository.owner)">@repository.owner</a> / <a href="@helpers.url(repository)" class="strong">@repository.name</a>