instances.html 756 B

12345678910111213141516171819202122232425262728293031
  1. {% extends "base.html" %}
  2. {% block header_title %}List instances{% endblock %}
  3. {% block section_title %}List instances{% endblock %}
  4. {% block content %}
  5. {% if instances %}
  6. <table border="1" width="100%">
  7. <tr><th>alias</th><th>hostname</th><th>port</th><th>key</th><th>https</th><th>test connection</th></tr>
  8. {% for instance in instances %}
  9. <tr>
  10. <td>{{ instance.alias }}</td>
  11. <td>{{ instance.hostname }}</td>
  12. <td>{{ instance.port }}</td>
  13. <td>{{ instance.key }}</td>
  14. <td>{{ instance.https }}</td>
  15. <td><a href="{% url 'config:instance-conntry' instance.hostname %}">test</a></td>
  16. </tr>
  17. {% endfor %}
  18. </table>
  19. {% else %}
  20. <p>No instances.</p>
  21. {% endif %}
  22. {% endblock %}