mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-21 06:56:54 +02:00
reformat the index.html
This commit is contained in:
parent
ce3da4ab03
commit
67aad3bda1
|
@ -632,52 +632,52 @@ information.
|
|||
#+BEGIN_SRC html :tangle ../inventory/templates/inventory/index.html
|
||||
{% 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 %}
|
||||
#+END_SRC
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user