Fix buttons of webhook list

This commit is contained in:
Naoki Takezoe
2015-12-10 14:04:44 +09:00
parent 354dc27e84
commit 9d644b4625
3 changed files with 6 additions and 3 deletions

View File

@@ -13,7 +13,6 @@
@html.menu("settings", repository){
@menu("hooks", repository){
@helper.html.information(info)
<div class="panel panel-default">
<div class="panel-heading strong">Webhook / Manage webhook</div>
<div class="panel-body">

View File

@@ -28,10 +28,10 @@
<em class="css-truncate" style="max-width: 225px;">(<span class="css-truncate-target">@events.map(_.name).mkString(", ")</span>)</em>
</td><td>
<div class="btn-group pull-right">
<a href="@url(repository)/settings/hooks/edit/@urlEncode(webHook.url)" class="btn btn-small">
<a href="@url(repository)/settings/hooks/edit/@urlEncode(webHook.url)" class="btn btn-default">
<span class="octicon octicon-pencil"></span>
</a>
<a href="@url(repository)/settings/hooks/delete?url=@urlEncode(webHook.url)" class="btn btn-small btn-danger" onclick="return confirm('delete webhook for @webHook.url ?')">
<a href="@url(repository)/settings/hooks/delete?url=@urlEncode(webHook.url)" class="btn btn-danger" onclick="return confirm('delete webhook for @webHook.url ?')">
<span class="octicon octicon-x"></span>
</a>
</div>

View File

@@ -494,6 +494,10 @@ span.highlight {
}
.btn-danger .octicon {
color: #900;
}
a.btn-danger:hover .octicon {
color: #fff;
}