diff --git a/src/open_inwoner/components/templates/components/StatusIndicator/StatusIndicator.html b/src/open_inwoner/components/templates/components/StatusIndicator/StatusIndicator.html index 682a8b95b5..2805969839 100644 --- a/src/open_inwoner/components/templates/components/StatusIndicator/StatusIndicator.html +++ b/src/open_inwoner/components/templates/components/StatusIndicator/StatusIndicator.html @@ -1,10 +1,12 @@ {% load icon_tags %} -
- {% if status_indicator == "success" %} - {% icon icon="check_circle" icon_position="after" extra_classes="icon--"|add:status_indicator %} {{status_indicator_text}} - {% elif status_indicator == "failure" %} - {% icon icon="cancel" icon_position="after" extra_classes="icon--"|add:status_indicator %} {{status_indicator_text}} - {% else %} - {% icon icon=status_indicator icon_position="after" extra_classes="icon--"|add:status_indicator %} {{status_indicator_text}} - {% endif %} -
+{% if status_indicator %} +
+ {% if status_indicator == "success" %} + {% icon icon="check_circle" icon_position="after" extra_classes="icon--"|add:status_indicator %} {{status_indicator_text}} + {% elif status_indicator == "failure" %} + {% icon icon="cancel" icon_position="after" extra_classes="icon--"|add:status_indicator %} {{status_indicator_text}} + {% else %} + {% icon icon=status_indicator icon_position="after" extra_classes="icon--"|add:status_indicator %} {{status_indicator_text}} + {% endif %} +
+{% endif %}