Show multiple IPs correctly

parent 8713bb68
......@@ -16,11 +16,23 @@
{% for server in nameservers %}
<tr>
<td><a href="/dns/{{ server }}">{{ server }}</a></td>
<td class="ipRecord add-parenthesis" data-ip="{{ nsAddr[server].a }}">
<a href="/ip/{{ nsAddr[server].a }}">{{ nsAddr[server].a }}</a>
<td>
<ul class="py-0 pl-0 list-unstyled">
{% for ip in nsAddr[server].a %}
<li class="ipRecord" data-ip="{{ ip }}">
<a href="/ip/{{ ip }}">{{ ip }}</a>
</li>
{% endfor %}
</ul>
</td>
<td class="ipRecord add-parenthesis" data-ip="{{ nsAddr[server].aaaa }}">
<a href="/ip/{{ nsAddr[server].aaaa }}">{{ nsAddr[server].aaaa }}</a>
<ul class="py-0 pl-0 list-unstyled">
{% for ip in nsAddr[server].aaaa %}
<li class="ipRecord" data-ip="{{ ip }}">
<a href="/ip/{{ ip }}">{{ ip }}</a>
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment