Don't just write "none" when the info is absent

This commit is contained in:
Mouse Reeve 2021-09-11 14:32:10 -07:00
parent 03a5ac9c3f
commit 6f531beb1c

View file

@ -33,7 +33,12 @@
<tr> <tr>
<td><a href="{% url 'settings-federated-server' server.id %}">{{ server.server_name }}</a></td> <td><a href="{% url 'settings-federated-server' server.id %}">{{ server.server_name }}</a></td>
<td>{{ server.created_date }}</td> <td>{{ server.created_date }}</td>
<td>{{ server.application_type }} ({{ server.application_version }})</td> <td>
{% if server.application_type %}
{{ server.application_type }}
{% if server.application_version %}({{ server.application_version }}){% endif %}
{% endif %}
</td>
<td>{{ server.get_status_display }}</td> <td>{{ server.get_status_display }}</td>
</tr> </tr>
{% endfor %} {% endfor %}