feat: show if an event was online

This commit is contained in:
Oliver Davies 2021-12-09 12:00:00 +00:00
parent 46e5fbcced
commit b3923c7b4d
2 changed files with 11 additions and 5 deletions

View file

@ -29,15 +29,15 @@ content:
type: datetime_default type: datetime_default
region: content region: content
field_is_online: field_is_online:
weight: 5 type: boolean
weight: 4
region: content
label: above label: above
settings: settings:
format: default format: boolean
format_custom_false: ''
format_custom_true: '' format_custom_true: ''
format_custom_false: ''
third_party_settings: { } third_party_settings: { }
type: boolean
region: content
field_link: field_link:
weight: 1 weight: 1
label: hidden label: hidden

View file

@ -63,6 +63,12 @@
{% endif %} {% endif %}
- {{ content.field_date }} - {{ content.field_date }}
{% block trans %}
{% if content.field_is_online.0 %}
(online)
{% endif %}
{% endblock %}
{% endblock %} {% endblock %}
</div> </div>
{% endblock paragraph %} {% endblock paragraph %}