(refs #1479)Url encode the branch name

This commit is contained in:
Naoki Takezoe
2017-03-13 13:00:54 +09:00
parent 0401488ab1
commit 7b8a5a482a
3 changed files with 25 additions and 41 deletions

View File

@@ -46,14 +46,12 @@
</form> </form>
</p> </p>
<table class="table table-bordered table-hover branches"> <table class="table table-hover branches">
@protectedBranchList.map { branch => @protectedBranchList.map { branch =>
<tr> <tr>
<td> <td>
<span class="branch-name">@branch</span> <span class="branch-name">@branch</span>
<span class="branch-action"> <a href="@helpers.url(repository)/settings/branches/@helpers.urlEncode(branch)" class="btn btn-sm btn-default pull-right">Edit</a>
<a href="@helpers.url(repository)/settings/branches/@helpers.encodeRefName(branch)" class="btn btn-small btn-default">Edit</a>
</span>
</td> </td>
</tr> </tr>
} }

View File

@@ -469,20 +469,6 @@ table.branches>thead>tr>th, table.branches>tbody>tr>td{
color: #aaa; color: #aaa;
line-height: 20px; 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{ .branches .branch-a-b-count{
color: rgba(0,0,0,0.5); color: rgba(0,0,0,0.5);
} }