Replace None in templates with placeholder filter

To be consistent, all uses of — or None is replaced with the
placeholder filter.

Fixes #9537
This commit is contained in:
Kim Johansson
2022-06-15 22:33:21 +02:00
parent 83fdfaa0eb
commit e8b970608e
25 changed files with 57 additions and 57 deletions

View File

@@ -33,7 +33,7 @@
{% if interface.rf_channel_frequency %}
{{ interface.rf_channel_frequency|simplify_decimal }} MHz
{% else %}
<span class="text-muted">&mdash;</span>
{{ ''|placeholder }}
{% endif %}
</td>
</tr>
@@ -43,7 +43,7 @@
{% if interface.rf_channel_width %}
{{ interface.rf_channel_width|simplify_decimal }} MHz
{% else %}
<span class="text-muted">&mdash;</span>
{{ ''|placeholder }}
{% endif %}
</td>
</tr>