Add Project Files

This commit is contained in:
2022-06-20 13:41:51 +03:00
parent a5aecd6dda
commit 09e209b988
24 changed files with 388 additions and 51 deletions

25
templates/index.html Normal file
View File

@@ -0,0 +1,25 @@
{% extends 'base.html' %}
{% block content %}
<table class="table">
<tr>
<th>Хост</th>
<th>Порт</th>
<th>Статус</th>
<th>Изменен</th>
</tr>
{% for obj in object_list %}
<tr>
<td><a href="{% url 'host-info' pk=obj.pk %}">{{ obj.host_name }}</a></td>
<td>{{ obj.port }}</td>
<td>
{% if obj.status == True %}
<strong style="color:darkgreen">ON</strong>
{% else %}
<strong style="color:red">OFF</strong>
{% endif %}
</td>
<td>{{ obj.updated|date:"d.m.Y." }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}