reformat the index.html
This commit is contained in:
parent
90c628e8f8
commit
ce3da4ab03
|
@ -1,49 +1,49 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block content %}
|
||||
{% 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 cellpadding="10">
|
||||
<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 cellpadding="10">
|
||||
<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 %}
|
||||
{% 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 %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue