mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-16 02:15:50 +01:00
(refs #142)Hide "Fork" button for repositories which have no commit.
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
@(active: String, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
@(active: String, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
||||||
@import context._
|
@import context._
|
||||||
@import view.helpers._
|
@import view.helpers._
|
||||||
<div class="pull-right">
|
|
||||||
<div class="input-prepend">
|
@if(repository.commitCount > 0){
|
||||||
<a href="@path/@repository.owner/@repository.name/fork" class="btn" style="margin-bottom: 10px;">Fork</a>
|
<div class="pull-right">
|
||||||
<span class="add-on"><a href="@url(repository)/network/members">@repository.forkedCount</a></span>
|
<div class="input-prepend">
|
||||||
|
<a href="@path/@repository.owner/@repository.name/fork" class="btn" style="margin-bottom: 10px;">Fork</a>
|
||||||
|
<span class="add-on"><a href="@url(repository)/network/members">@repository.forkedCount</a></span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
}
|
||||||
<div class="head">
|
<div class="head">
|
||||||
@if(repository.repository.isPrivate){
|
@if(repository.repository.isPrivate){
|
||||||
<i class="icon-lock"></i>
|
<i class="icon-lock"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user