From 27e1a35e5a9fd0545d3707b8187753b35afb3fb0 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Tue, 2 May 2017 03:42:20 +0200 Subject: [PATCH] DNS check links + more glyphicons --- templates/domains/overview.html | 14 +++++++------- templates/whoisdb/handle_table.html | 10 ++++++++-- templates/whoisdb/handle_table_row.html | 2 +- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/templates/domains/overview.html b/templates/domains/overview.html index d97a9f4..dddca80 100644 --- a/templates/domains/overview.html +++ b/templates/domains/overview.html @@ -37,9 +37,9 @@ {{ domain.mnt_by.all|linkObjects }} - DNS-check - Edit - Delete + + + {% endfor %} @@ -60,7 +60,7 @@ {{ nameserver.glueIPv4|default:"-" }} {{ nameserver.glueIPv6|default:"-" }} {{ nameserver.mnt_by.all|linkObjects }} - Edit Delete + {% endfor %} @@ -85,9 +85,9 @@ - DNS-check - Edit - Delete + + + {% endfor %} diff --git a/templates/whoisdb/handle_table.html b/templates/whoisdb/handle_table.html index 2101ad7..3203596 100644 --- a/templates/whoisdb/handle_table.html +++ b/templates/whoisdb/handle_table.html @@ -12,8 +12,14 @@ {% with object.getAppName|add:":"|add:object.getClassName|lower|add:"-edit" as editView %} {% with object.getAppName|add:":"|add:object.getClassName|lower|add:"-delete" as deleteView %} - - + {% if object.getClassName == "Domain" %} + + {% elif object.getClassName == "ReverseZone" %} + + + {% endif %} + + {% endwith %} {% endwith %} diff --git a/templates/whoisdb/handle_table_row.html b/templates/whoisdb/handle_table_row.html index 5446dab..f838cbc 100644 --- a/templates/whoisdb/handle_table_row.html +++ b/templates/whoisdb/handle_table_row.html @@ -10,7 +10,7 @@ {{ obj.getResource|default:"-" }} {{ obj.mnt_by.all|linkObjects|default:"-" }}{% if obj.mnt_lower.all %} / lower: {{ obj.mnt_lower.all|linkObjects }}{% endif %} {{ obj.admin_c.all|linkObjects }} - Edit Delete + {% endwith %} {% endwith %}