mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 06:25:51 +01:00
Fix fork button
This commit is contained in:
@@ -24,28 +24,8 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
@helper.html.information(info)
|
@helper.html.information(info)
|
||||||
@helper.html.error(error)
|
@helper.html.error(error)
|
||||||
@if(repository.commitCount > 0){
|
<div class="row">
|
||||||
<div class="pull-right">
|
<div class="head col-md-10">
|
||||||
<div class="input-prepend">
|
|
||||||
@if(loginAccount.isEmpty){
|
|
||||||
<a title="You must be signed in to fork a repository" href="@path/signin?redirect=@urlEncode(s"${path}/${repository.owner}/${repository.name}")" class="btn btn-sm btn-default" style="margin-bottom: 10px;">Fork</a>
|
|
||||||
} else {
|
|
||||||
@if(isNoGroup) {
|
|
||||||
<a id="fork-link" href="javascript:void(0);" class="btn btn-sm btn-default" style="margin-bottom: 10px;">Fork</a>
|
|
||||||
} else {
|
|
||||||
<a href="@path/@repository.owner/@repository.name/fork" class="btn btn-sm btn-default" rel="facebox" style="margin-bottom: 10px;">Fork</a>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
<span class="add-on count"><a href="@url(repository)/network/members">@repository.forkedCount</a></span>
|
|
||||||
</div>
|
|
||||||
@if(loginAccount.isDefined && isNoGroup){
|
|
||||||
<form id="fork-form" method="post" action="@path/@repository.owner/@repository.name/fork" style="display: none;">
|
|
||||||
<input type="hidden" name="account" value="@loginAccount.get.userName"/>
|
|
||||||
</form>
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
<div class="head">
|
|
||||||
@helper.html.repositoryicon(repository, true)
|
@helper.html.repositoryicon(repository, true)
|
||||||
<a href="@url(repository.owner)">@repository.owner</a> / <a href="@url(repository)" class="strong">@repository.name</a>
|
<a href="@url(repository.owner)">@repository.owner</a> / <a href="@url(repository)" class="strong">@repository.name</a>
|
||||||
|
|
||||||
@@ -57,6 +37,30 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
@if(repository.commitCount > 0){
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-btn">
|
||||||
|
@if(loginAccount.isEmpty){
|
||||||
|
<a title="You must be signed in to fork a repository" href="@path/signin?redirect=@urlEncode(s"${path}/${repository.owner}/${repository.name}")" class="btn btn-sm btn-default" style="margin-bottom: 10px;">Fork</a>
|
||||||
|
} else {
|
||||||
|
@if(isNoGroup) {
|
||||||
|
<a id="fork-link" href="javascript:void(0);" class="btn btn-sm btn-default" style="margin-bottom: 10px;">Fork</a>
|
||||||
|
} else {
|
||||||
|
<a href="@path/@repository.owner/@repository.name/fork" class="btn btn-sm btn-default" rel="facebox" style="margin-bottom: 10px;">Fork</a>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</span>
|
||||||
|
<span class="add-on count"><a href="@url(repository)/network/members">@repository.forkedCount</a></span>
|
||||||
|
</div>
|
||||||
|
@if(loginAccount.isDefined && isNoGroup){
|
||||||
|
<form id="fork-form" method="post" action="@path/@repository.owner/@repository.name/fork" style="display: none;">
|
||||||
|
<input type="hidden" name="account" value="@loginAccount.get.userName"/>
|
||||||
|
</form>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr style="margin-bottom: 20px;"/>
|
<hr style="margin-bottom: 20px;"/>
|
||||||
<div class="container body">
|
<div class="container body">
|
||||||
|
|||||||
@@ -153,15 +153,16 @@ span.header-version {
|
|||||||
font-size: small;
|
font-size: small;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.input-prepend span.count {
|
div.input-group span.count {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
-webkit-border-radius: 0 4px 4px 0;
|
-webkit-border-radius: 0 4px 4px 0;
|
||||||
-moz-border-radius: 0 4px 4px 0;
|
-moz-border-radius: 0 4px 4px 0;
|
||||||
border-radius: 0 4px 4px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
height: 16px;
|
border: 1px solid #d8d8d8;
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
padding-top: 2px;
|
height: 24px;
|
||||||
padding-bottom: 6px;
|
padding: 3px 6px;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.global-header-menu {
|
a.global-header-menu {
|
||||||
|
|||||||
Reference in New Issue
Block a user