-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 Only show status indicator header if status indicator is set
to avoid unnecessary spacing being added to the case list cards
- Loading branch information
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
20 changes: 11 additions & 9 deletions
20
src/open_inwoner/components/templates/components/StatusIndicator/StatusIndicator.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{% load icon_tags %} | ||
<div class="card__header {{ 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 %} | ||
</div> | ||
{% if status_indicator %} | ||
<div class="card__header {{ 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 %} | ||
</div> | ||
{% endif %} |