Valid dl html syntax on announcement page

This commit is contained in:
Mouse Reeve 2021-12-29 10:39:47 -08:00
parent 161532f8a8
commit 1e27b64af4

View file

@ -31,35 +31,29 @@
<div class="block content"> <div class="block content">
<dl> <dl>
<div class="is-flex notification pt-1 pb-1 mb-0 {% if announcement in active_announcements %}is-success{% else %}is-danger{% endif %}"> <dt class="is-pulled-left mr-5 has-text-weight-bold">{% trans "Visible:" %}</dt>
<dt class="mr-1 has-text-weight-bold">{% trans "Visible:" %}</dt> <dd>
<dd> <span class="tag {% if announcement in active_announcements %}is-success{% else %}is-danger{% endif %}">
{% if announcement in active_announcements %} {% if announcement in active_announcements %}
{% trans "True" %} {% trans "True" %}
{% else %} {% else %}
{% trans "False" %} {% trans "False" %}
{% endif %} {% endif %}
</dd> </span>
</div> </dd>
{% if announcement.start_date %} {% if announcement.start_date %}
<div class="is-flex notificationi pt-1 pb-1 mb-0 has-background-white"> <dt class="is-pulled-left mr-5 has-text-weight-bold">{% trans "Start date:" %}</dt>
<dt class="mr-1 has-text-weight-bold">{% trans "Start date:" %}</dt> <dd>{{ announcement.start_date|naturalday }}</dd>
<dd>{{ announcement.start_date|naturalday }}</dd>
</div>
{% endif %} {% endif %}
{% if announcement.end_date %} {% if announcement.end_date %}
<div class="is-flex notification pt-1 pb-1 mb-0 has-background-white"> <dt class="is-pulled-left mr-5 has-text-weight-bold">{% trans "End date:" %}</dt>
<dt class="mr-1 has-text-weight-bold">{% trans "End date:" %}</dt> <dd>{{ announcement.end_date|naturalday }}</dd>
<dd>{{ announcement.end_date|naturalday }}</dd>
</div>
{% endif %} {% endif %}
<div class="is-flex notification pt-1 pb-1 has-background-white"> <dt class="is-pulled-left mr-5 has-text-weight-bold">{% trans "Active:" %}</dt>
<dt class="mr-1 has-text-weight-bold">{% trans "Active:" %}</dt> <dd>{{ announcement.active }}</dd>
<dd>{{ announcement.active }}</dd>
</div>
</dl> </dl>
<hr aria-hidden="true"> <hr aria-hidden="true">