Add Project Files
This commit is contained in:
25
templates/index.html
Normal file
25
templates/index.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user