Browse Source

DNS check links + more glyphicons

Sebastian Lohff 2 years ago
parent
commit
27e1a35e5a

+ 7
- 7
templates/domains/overview.html View File

@@ -37,9 +37,9 @@
37 37
 					</td>
38 38
 					<td>{{ domain.mnt_by.all|linkObjects }}</td>
39 39
 					<td>
40
-						<a href="{% url "domains:domain-check" domain.name %}">DNS-check</a>
41
-						<a href="{% url "domains:domain-edit" domain.name %}">Edit</a>
42
-						<a href="{% url "domains:domain-delete" domain.name %}">Delete</a>
40
+						<a href="{% url "domains:domain-check" domain.name %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
41
+						<a href="{% url "domains:domain-edit" domain.name %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
42
+						<a href="{% url "domains:domain-delete" domain.name %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a>
43 43
 					</td>
44 44
 				</tr>
45 45
 			{% endfor %}
@@ -60,7 +60,7 @@
60 60
 					<td>{{ nameserver.glueIPv4|default:"-" }}</td>
61 61
 					<td>{{ nameserver.glueIPv6|default:"-" }}</td>
62 62
 					<td>{{ nameserver.mnt_by.all|linkObjects }}</td>
63
-					<td><a href="{% url "domains:nameserver-edit" nameserver.getPK %}">Edit</a> <a href="{% url "domains:nameserver-delete" nameserver.getPK %}">Delete</a></td>
63
+					<td><a href="{% url "domains:nameserver-edit" nameserver.getPK %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a> <a href="{% url "domains:nameserver-delete" nameserver.getPK %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
64 64
 				</tr>
65 65
 			{% endfor %}
66 66
 			</table>
@@ -85,9 +85,9 @@
85 85
 						</ul>
86 86
 					</td>
87 87
 					<td>
88
-						<a href="{% url "domains:reversezone-check" reversezone.pk %}">DNS-check</a>
89
-						<a href="{% url "domains:reversezone-edit" reversezone.pk %}">Edit</a>
90
-						<a href="{% url "domains:reversezone-delete" reversezone.pk %}">Delete</a></td>
88
+						<a href="{% url "domains:reversezone-check" reversezone.pk %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
89
+						<a href="{% url "domains:reversezone-edit" reversezone.pk %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
90
+						<a href="{% url "domains:reversezone-delete" reversezone.pk %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
91 91
 				</tr>
92 92
 			{% endfor %}
93 93
 			</table>

+ 8
- 2
templates/whoisdb/handle_table.html View File

@@ -12,8 +12,14 @@
12 12
 		{% with object.getAppName|add:":"|add:object.getClassName|lower|add:"-edit" as editView %}
13 13
 		{% with object.getAppName|add:":"|add:object.getClassName|lower|add:"-delete" as deleteView %}
14 14
 		<td>
15
-			<a href="{% url editView object.getPK %}"><span class="glyphicon glyphicon-pencil"></span></a>
16
-			<a href="{% url deleteView object.getPK %}"><span class="glyphicon glyphicon-trash"></span></a>
15
+			{% if object.getClassName == "Domain" %}
16
+				<a href="{% url "domains:domain-check" object.getZone %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
17
+			{% elif object.getClassName == "ReverseZone" %}
18
+				<a href="{% url "domains:reversezone-check" object.getPK %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
19
+
20
+			{% endif %}
21
+			<a href="{% url editView object.getPK %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
22
+			<a href="{% url deleteView object.getPK %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a>
17 23
 		</td>
18 24
 		{% endwith %}
19 25
 		{% endwith %}

+ 1
- 1
templates/whoisdb/handle_table_row.html View File

@@ -10,7 +10,7 @@
10 10
 			<td>{{ obj.getResource|default:"-" }}</td>
11 11
 			<td>{{ obj.mnt_by.all|linkObjects|default:"-" }}{% if obj.mnt_lower.all %} / lower: {{ obj.mnt_lower.all|linkObjects }}{% endif %}</td>
12 12
 			<td>{{ obj.admin_c.all|linkObjects }}</td>
13
-			<td><a href="{% url editView obj.handle %}">Edit</a> <a href="{% url deleteView obj.handle %}">Delete</a></td>
13
+			<td><a href="{% url editView obj.handle %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a> <a href="{% url deleteView obj.handle %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
14 14
 		</tr>
15 15
 		{% endwith %}
16 16
 	{% endwith %}

Loading…
Cancel
Save