2017-12-25 00:37:31 +01:00
|
|
|
{% extends "inventory/base.html" %}
|
|
|
|
{% block content %}
|
2017-12-27 17:46:57 +01:00
|
|
|
{% if device_list or computer_list %}
|
|
|
|
<h3>Device List</h3>
|
|
|
|
<ul>
|
|
|
|
{% for device in device_list %}
|
|
|
|
<li><a href="{% url 'device' device.id %}">{{ device.name }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
<h3>Computer List</h3>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Hostname</th>
|
|
|
|
<th>IP</th>
|
|
|
|
</tr>
|
|
|
|
{% for computer in computer_list %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{% url 'computer' computer.id %}">{{ computer.name }}</a></td>
|
|
|
|
<td>{{ computer.ip }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
{% if cronjob_list %}
|
|
|
|
<h3>Cron Job List</h3>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Hostname</th>
|
|
|
|
<th>Minute</th>
|
|
|
|
<th>Hour</th>
|
|
|
|
<th>Day of Week</th>
|
|
|
|
<th>Day of Month</th>
|
|
|
|
<th>Month</th>
|
|
|
|
</tr>
|
|
|
|
{% for cronjob in cronjob_list %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{% url 'cronjob' cronjob.id %}">{{ cronjob.name }}</a></td>
|
|
|
|
<td>{{ cronjob.host }}</td>
|
|
|
|
<td>{{ cronjob.minutes }}</td>
|
|
|
|
<td>{{ cronjob.hours }}</td>
|
|
|
|
<td>{{ cronjob.weekday }}</td>
|
|
|
|
<td>{{ cronjob.day }}</td>
|
|
|
|
<td>{{ cronjob.month }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
2017-12-25 00:37:31 +01:00
|
|
|
{% endblock %}
|