forked from GithubBackups/healthchecks
Gear icon links to Log page directly
This commit is contained in:
parent
458c4cfeeb
commit
8e7b05f96e
@ -79,16 +79,16 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.check-menu {
|
||||
.show-log {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.check-menu .icon-settings {
|
||||
.show-log .icon-settings {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.dropdown-menu > li > a.check-menu-remove {
|
||||
color: #B71C1C;
|
||||
tr:hover .show-log {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
button.copy-link {
|
||||
@ -114,9 +114,6 @@ button.copy-link:hover {
|
||||
|
||||
|
||||
|
||||
tr:hover .check-menu {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
tr:hover .copy-link {
|
||||
opacity: 1
|
||||
|
@ -13,17 +13,6 @@ $(function () {
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".check-menu-remove").click(function() {
|
||||
var code = $(this).closest("tr.checks-row").attr("id");
|
||||
var url = "/checks/" + code + "/remove/";
|
||||
|
||||
$("#remove-check-form").attr("action", url);
|
||||
$(".remove-check-name").text(this.dataset.name);
|
||||
$('#remove-check-modal').modal("show");
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".integrations").tooltip({
|
||||
container: "body",
|
||||
selector: "span",
|
||||
@ -121,14 +110,6 @@ $(function () {
|
||||
|
||||
});
|
||||
|
||||
$(".pause-li a").click(function(e) {
|
||||
var code = $(this).closest("tr.checks-row").attr("id");
|
||||
var url = "/checks/" + code + "/pause/";
|
||||
|
||||
$("#pause-form").attr("action", url).submit();
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".show-log").click(function(e) {
|
||||
var code = $(this).closest("tr.checks-row").attr("id");
|
||||
var url = "/checks/" + code + "/log/";
|
||||
@ -154,20 +135,6 @@ $(function () {
|
||||
}
|
||||
});
|
||||
|
||||
function showUsage(el) {
|
||||
var tr = $(el).closest("tr");
|
||||
|
||||
$(".ex", "#show-usage-modal").text(tr.data("url"));
|
||||
$(".em", "#show-usage-modal").text(tr.data("email"));
|
||||
|
||||
$("#show-usage-modal").modal("show");
|
||||
}
|
||||
|
||||
$(".usage-examples").click(function(e) {
|
||||
showUsage(e.target);
|
||||
return false;
|
||||
});
|
||||
|
||||
// Auto-refresh
|
||||
var lastStatus = {};
|
||||
var lastPing = {};
|
||||
|
@ -18,7 +18,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="col-sm-5">
|
||||
<div class="details-block">
|
||||
<h2>How To Ping</h2>
|
||||
<div>
|
||||
@ -84,6 +84,7 @@
|
||||
<h2>Schedule</h2>
|
||||
<table id="log-schedule">
|
||||
<tr>
|
||||
{% if check.kind == "simple" %}
|
||||
<th>Period</th>
|
||||
<td>
|
||||
<span class="value">{{ check.timeout|hc_duration }}</span>
|
||||
@ -91,6 +92,12 @@
|
||||
(Expected time between pings)
|
||||
</div>
|
||||
</td>
|
||||
{% elif check.kind == "cron" %}
|
||||
<th>Cron Expression</th>
|
||||
<td>
|
||||
<span class="value">{{ check.schedule }}</span>
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Grace Time</th>
|
||||
@ -152,8 +159,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="col-sm-7">
|
||||
{% if events %}
|
||||
<h2>
|
||||
Log
|
||||
@ -265,7 +271,8 @@
|
||||
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-info">Log is empty. This check has not received any pings yet.</div>
|
||||
<h2>Log</h2>
|
||||
<div class="alert alert-info">This check has not received any pings yet.</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -47,8 +47,6 @@
|
||||
|
||||
{% include "front/update_name_modal.html" %}
|
||||
{% include "front/update_timeout_modal.html" %}
|
||||
{% include "front/remove_check_modal.html" %}
|
||||
{% include "front/show_usage_modal.html" %}
|
||||
|
||||
<div id="ping-details-modal" class="modal">
|
||||
<div class="modal-dialog">
|
||||
@ -72,8 +70,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="pause-form" method="post">{% csrf_token %}</form>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
@ -108,29 +108,9 @@
|
||||
</div>
|
||||
</td>
|
||||
<td class="hidden-xs">
|
||||
<div class="check-menu dropdown">
|
||||
<button class="btn btn-sm btn-default dropdown-toggle" type="button" data-toggle="dropdown">
|
||||
<button class="btn btn-sm btn-default show-log" type="button">
|
||||
<span class="icon-settings" aria-hidden="true"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="show-log" href="#">Details and Log</a>
|
||||
</li>
|
||||
<li class="pause-li" {% if check.status == "new" or check.status == "paused" %}class="disabled"{% endif %}>
|
||||
<a href="#">Pause Monitoring</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="usage-examples">Usage Examples</a>
|
||||
</li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li>
|
||||
<a href="#" class="check-menu-remove"
|
||||
data-name="{{ check.name_then_code }}">
|
||||
Remove
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user