mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-22 23:46:42 +02:00
16 lines
548 B
HTML
16 lines
548 B
HTML
|
{% extends "inventory/base.html" %}
|
||
|
{% block content %}
|
||
|
{% if device_list or computer_list %}
|
||
|
<ul>
|
||
|
{% for device in device_list %}
|
||
|
<li><a href="{% url 'device' device.id %}">{{ device.name }}</a></li>
|
||
|
{% endfor %}
|
||
|
{% for computer in computer_list %}
|
||
|
<li><a href="{% url 'computer' computer.id %}">{{ computer.name }}</a></li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% else %}
|
||
|
<p>No devices are available.</p>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|