aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/templates/lava_scheduler_app/device.html
blob: 5529e731f96276d061c6593aad7feab1638ed862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "lava_scheduler_app/_device_base.html" %}
{% load django_tables2 %}
{% load i18n %}
{% load utils %}

{% block device_heading %}
<ul class="pager">
  <li class="previous{% if not previous_device %} disabled{% endif %}">
    <a href="{% if previous_device %}{% url 'lava.scheduler.device.detail' previous_device %}{% else %}#{% endif %}"><span
            class="glyphicon glyphicon-backward"></span> {% trans "Previous device" %}</a>
  </li>
  <li class="next{% if not next_device %} disabled{% endif %}">
    <a href="{% if next_device %}{% url 'lava.scheduler.device.detail' next_device %}{% else %}#{% endif %}">{% trans "Next Device" %} <span class="glyphicon glyphicon-forward"></span></a>
  </li>
</ul>

{% if user.is_staff and not device.get_health_check and not device.device_type.disable_health_check %}
  <div class="alert alert-warning">
    <button type="button" class="close" data-dismiss="alert">&times;</button>
    <strong>The device has no
      <a href="{{ STATIC_URL }}docs/v2/glossary.html#term-health-check">health check job</a></strong>
    Consider adding a <a href="{{ STATIC_URL }}docs/v2/healthchecks.html#health-checks">health check definition</a>.
  </div>
{% endif %}
{% endblock %}

{% block content_columns %}
<hr/>
<h3>Recent jobs on {{ device.hostname }}</h3>
<div id="recent_job">
  {% render_table recent_job_table %}
</div>
{% endblock %}