mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-14 01:15:50 +01:00
(refs #1479)Url encode the branch name
This commit is contained in:
@@ -46,14 +46,12 @@
|
||||
</form>
|
||||
</p>
|
||||
|
||||
<table class="table table-bordered table-hover branches">
|
||||
<table class="table table-hover branches">
|
||||
@protectedBranchList.map { branch =>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="branch-name">@branch</span>
|
||||
<span class="branch-action">
|
||||
<a href="@helpers.url(repository)/settings/branches/@helpers.encodeRefName(branch)" class="btn btn-small btn-default">Edit</a>
|
||||
</span>
|
||||
<a href="@helpers.url(repository)/settings/branches/@helpers.urlEncode(branch)" class="btn btn-sm btn-default pull-right">Edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
Sorry, we couldn’t find any status checks in the last week for this repository.<br />
|
||||
Please create a commit status by API (<a href="https://developer.github.com/v3/repos/statuses/">Learn more about status checks on GitHub</a>)
|
||||
</div>
|
||||
}else{
|
||||
} else {
|
||||
<div class="js-has_required_statuses" style="display:none">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Choose which status checks must pass before branches can be merged into <b>@branch</b>.</div>
|
||||
|
||||
@@ -469,20 +469,6 @@ table.branches>thead>tr>th, table.branches>tbody>tr>td{
|
||||
color: #aaa;
|
||||
line-height: 20px;
|
||||
}
|
||||
.branches .branch-action{
|
||||
/*float: right;*/
|
||||
text-align: right;
|
||||
height: 20px;
|
||||
}
|
||||
.branches .branch-action a {
|
||||
font-size: 100%;
|
||||
}
|
||||
.branches .branch-action a.btn {
|
||||
font-size: 100%;
|
||||
position: relative;
|
||||
top: -6px;
|
||||
}
|
||||
|
||||
.branches .branch-a-b-count{
|
||||
color: rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user