forked from GithubBackups/healthchecks
"show usage" button next to each check
This commit is contained in:
parent
f02c809325
commit
820c7b1352
@ -51,7 +51,8 @@ def my_checks(request):
|
|||||||
"now": timezone.now(),
|
"now": timezone.now(),
|
||||||
"tags": counter.most_common(),
|
"tags": counter.most_common(),
|
||||||
"down_tags": down_tags,
|
"down_tags": down_tags,
|
||||||
"grace_tags": grace_tags
|
"grace_tags": grace_tags,
|
||||||
|
"ping_endpoint": settings.PING_ENDPOINT
|
||||||
}
|
}
|
||||||
|
|
||||||
return render(request, "front/my_checks.html", ctx)
|
return render(request, "front/my_checks.html", ctx)
|
||||||
|
@ -62,18 +62,27 @@ table.table tr > th.th-name {
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.show-usage {
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
tr:hover .check-menu {
|
tr:hover .check-menu {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
#show-urls.active, #show-emails.active {
|
tr:hover .show-usage {
|
||||||
color: #333;
|
opacity: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
#checks-table .url-cell {
|
#checks-table .url-cell {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.url-cell .base {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.my-checks-url {
|
.my-checks-url {
|
||||||
font-family: "Lucida Console", Monaco, monospace;
|
font-family: "Lucida Console", Monaco, monospace;
|
||||||
font-size: 11.7px;
|
font-size: 11.7px;
|
||||||
|
@ -176,7 +176,7 @@ $(function () {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".my-checks-url").click(function(e) {
|
$(".show-usage").click(function(e) {
|
||||||
var a = e.target;
|
var a = e.target;
|
||||||
var url = a.getAttribute("href");
|
var url = a.getAttribute("href");
|
||||||
var email = a.getAttribute("data-email");
|
var email = a.getAttribute("data-email");
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{% load hc_extras humanize %}
|
{% load hc_extras humanize %}
|
||||||
|
|
||||||
<table id="checks-table" class="table hidden-xs">
|
<table id="checks-table" class="table hidden-xs">
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
@ -39,13 +38,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="url-cell">
|
<td class="url-cell">
|
||||||
|
<span class="my-checks-url">
|
||||||
|
<span class="base">{{ ping_endpoint }}</span>{{ check.code }}
|
||||||
|
</span>
|
||||||
<a
|
<a
|
||||||
href="{{ check.url }}"
|
href="{{ check.url }}"
|
||||||
class="my-checks-url"
|
class="btn btn-xs btn-default show-usage hidden-sm"
|
||||||
title="Click to show usage examples"
|
data-email="{{ check.email }}">
|
||||||
data-email="{{ check.email }}"
|
show usage
|
||||||
data-toggle="tooltip">
|
|
||||||
{{ check.url }}
|
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="timeout-cell">
|
<td class="timeout-cell">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user