Make template a bit nicer
This commit is contained in:
parent
322cb731bf
commit
c01c862b84
|
@ -14,15 +14,24 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>Forward DNS</td>
|
<td>Forward DNS</td>
|
||||||
<td>
|
<td>
|
||||||
{{ object.dnsstatus.get_forward_action_display }}:
|
{% if object.dnsstatus.forward_action is not None %}
|
||||||
{{ object.dnsstatus.get_forward_rcode_display }}
|
{{ object.dnsstatus.get_forward_action_display }}:
|
||||||
|
{{ object.dnsstatus.get_forward_rcode_display }}
|
||||||
|
{% else %}
|
||||||
|
<span class="text-muted">Not created</span>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Reverse DNS</td>
|
<td>Reverse DNS</td>
|
||||||
<td>
|
<td>
|
||||||
{{ object.dnsstatus.get_reverse_action_display }}:
|
{% if object.dnsstatus.reverse_action is not None %}
|
||||||
{{ object.dnsstatus.get_reverse_rcode_display }}</td>
|
{{ object.dnsstatus.get_reverse_action_display }}:
|
||||||
|
{{ object.dnsstatus.get_reverse_rcode_display }}
|
||||||
|
{% else %}
|
||||||
|
<span class="text-muted">Not created</span>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue