Make template a bit nicer

This commit is contained in:
Sander Steffann 2020-04-16 15:35:28 +02:00
parent 322cb731bf
commit c01c862b84

View file

@ -14,15 +14,24 @@
<tr>
<td>Forward DNS</td>
<td>
{{ object.dnsstatus.get_forward_action_display }}:
{{ object.dnsstatus.get_forward_rcode_display }}
{% if object.dnsstatus.forward_action is not None %}
{{ object.dnsstatus.get_forward_action_display }}:
{{ object.dnsstatus.get_forward_rcode_display }}
{% else %}
<span class="text-muted">Not created</span>
{% endif %}
</td>
</tr>
<tr>
<td>Reverse DNS</td>
<td>
{{ object.dnsstatus.get_reverse_action_display }}:
{{ object.dnsstatus.get_reverse_rcode_display }}</td>
{% if object.dnsstatus.reverse_action is not None %}
{{ object.dnsstatus.get_reverse_action_display }}:
{{ object.dnsstatus.get_reverse_rcode_display }}
{% else %}
<span class="text-muted">Not created</span>
{% endif %}
</td>
</tr>
</tbody>
</table>