Improve the looks of the previous commit by using an infinity sign in
case of a missing start or end date - Legacy-Id: 12162
This commit is contained in:
parent
399bb3bf4d
commit
4450ff192c
|
@ -1,7 +1,7 @@
|
|||
<table class="simple-table">
|
||||
{% for p in unavailable_periods %}
|
||||
<tr class="unavailable-period-{{ p.state }}">
|
||||
<td>{{ p.start_date|default:"" }} - {{ p.end_date|default:"" }}</td>
|
||||
<td> {% if p.start_date or p.end_date %}{{ p.start_date|default:"∞" }} -{% endif %} {{ p.end_date|default:"∞" }}</td>
|
||||
<td>{{ p.get_availability_display }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue