diff --git a/app/templates/ipam/subnet_view.html b/app/templates/ipam/subnet_view.html index b5a0c58..d6fa156 100644 --- a/app/templates/ipam/subnet_view.html +++ b/app/templates/ipam/subnet_view.html @@ -1,4 +1,58 @@ {% extends "layout.html" %} +{% from "components/markdown_content.html" import render_markdown, render_markdown_with_truncate %} + +{% block styles %} + + +{% endblock %} {% block content %}
@@ -156,43 +210,55 @@
- {% from "components/markdown_content.html" import render_markdown, render_markdown_with_truncate %}
-
+

Applications in this Subnet

-
+
{% if subnet_apps %} -
- {% for app in subnet_apps %} -
-
-
-

{{ app.name }}

- on {{ app.server.hostname }} ({{ app.server.ip_address }}) -
- -
-
- {% if app.documentation %} - {{ render_markdown_with_truncate(app.documentation) }} - Read more - {% else %} -

No documentation available for this application.

- {% endif %} -
-
- {% endfor %} +
+ + + + + + + + + + + {% for app in subnet_apps %} + + + + + + + {% endfor %} + +
NameServerDocumentation
+ {{ app.name }} + + + {{ app.server.hostname }} ({{ app.server.ip_address }}) + + + {% if app.documentation %} + {{ render_markdown_with_truncate(app.documentation, 120) }} + {% else %} + No documentation available + {% endif %} + + + View + +
{% else %} -
+
@@ -208,15 +274,18 @@
-
-
Usage
-
-
-
-
- {{ used_ips }} used - {{ total_ips }} total +
+
+
+
+
IP Usage ({{ used_ips }} of {{ total_ips }})
+
{{ (used_ips / total_ips * 100)|round(1) }}%
+
+
+
+
+
@@ -249,65 +318,4 @@
- - {% endblock %} \ No newline at end of file