mirror of
https://github.com/status-im/cabot.git
synced 2025-02-25 10:55:20 +00:00
77 lines
3.0 KiB
HTML
77 lines
3.0 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="col-xs-1"><h2><i class="glyphicon glyphicon-{% if check.polymorphic_ctype.model == 'graphitestatuscheck' %}signal{% elif check.polymorphic_ctype.model == 'httpstatuscheck' %}arrow-up{% elif check.polymorphic_ctype.model == 'jenkinsstatuscheck' %}ok{% endif %}"></i></h2></div>
|
|
<div class="col-xs-5"><h2>{{ check.name }}</h2></div>
|
|
<div class="col-xs-4 text-right"><h2><span class="label label-{% if check.calculated_status == 'passing' %}success{% else %}danger{% endif %}">{{ check.calculated_status|capfirst }}</span></h2></div>
|
|
<div class="col-xs-2 text-right"><h2><a href="{% if check.polymorphic_ctype.model == 'graphitestatuscheck' %}{% url update-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'httpstatuscheck' %}{% url update-http-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'jenkinsstatuscheck' %}{% url update-jenkins-check pk=check.id %}{% endif %}" class=""><i class="glyphicon glyphicon-edit"></i></a> <a href="{% url run-check pk=check.id %}"><i class="glyphicon glyphicon-refresh"></i></a></h2></div>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="col-xs-1"><h3><i class="fa fa-list"></i></h3></div>
|
|
<div class="col-xs-11"><h3>Check results</h3></div>
|
|
</div>
|
|
<div class="col-xs-12">
|
|
{% if not checkresults %}
|
|
<div class="col-xs-11 col-xs-offset-1">No results for this check</div>
|
|
{% else %}
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Status</th>
|
|
<th>Time started</th>
|
|
<th>Time complete</th>
|
|
<th>Took</th>
|
|
<th>Error</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for result in checkresults %}
|
|
<tr>
|
|
<td>
|
|
<span class="label {% if result.succeeded %}label-success{% else %}label-danger{% endif %}">{{ result.status }}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<a href="{% url result pk=result.id %}">{{ result.time }}</a>
|
|
</td>
|
|
<td>{{ result.time_complete }}</td>
|
|
<td>{{ result.took }}</td>
|
|
<td>{{ result.error }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class="row">
|
|
{% for service in check.service_set.all %}
|
|
{% if service.hackpad_id %}
|
|
<div class="col-xs-12">
|
|
<div class="col-xs-1"><h3><i class="fa fa-exclamation-triangle"></i></h3></div>
|
|
<div class="col-xs-11"><h3>Recovery instructions for linked service <a href="{% url service service.id %}">{{ service.name }}</a></h3></div>
|
|
<div class="col-xs-12">
|
|
<script src="https://arachnys.hackpad.com/{{ service.hackpad_id }}.js"></script>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock content %}
|
|
|
|
{% block js %}
|
|
{% load compress %}
|
|
{{ block.super }}
|
|
{% compress js %}
|
|
<script type="text/coffeescript">
|
|
|
|
</script>
|
|
{% endcompress %}
|
|
{% endblock js %} |