Skip to content

Commit

Permalink
Update events display
Browse files Browse the repository at this point in the history
  • Loading branch information
occupant committed Nov 14, 2022
1 parent ee5572e commit 2dc5e84
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/content/node--ubc-event--card-horizontal.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@
<a{{ link_attributes.addClass(link_classes) }} href="{{ url }}" rel="bookmark">{{ label }}</a>
</h3>
{{ title_suffix }}
{% if not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %}
<div{{ meta_attributes.addClass(meta_classes) }}>
{{ content.field_event_location }}
</div>
{% endif %}
{% if not node.isPublished() %}
<div class="unpublished">Unpublished</div>
{% endif %}
Expand Down
5 changes: 5 additions & 0 deletions templates/content/node--ubc-event--card-image.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@
<a{{ link_attributes.addClass(link_classes) }} href="{{ url }}" rel="bookmark">{{ label }}</a>
</h3>
{{ title_suffix }}
{% if not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %}
<div{{ meta_attributes.addClass(meta_classes) }}>
{{ content.field_event_location }}
</div>
{% endif %}
{% if not node.isPublished() %}
<div class="unpublished">Unpublished</div>
{% endif %}
Expand Down
5 changes: 5 additions & 0 deletions templates/content/node--ubc-event--card-vertical.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@
<a{{ link_attributes.addClass(link_classes) }} href="{{ url }}" rel="bookmark">{{ label }}</a>
</h3>
{{ title_suffix }}
{% if not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %}
<div{{ meta_attributes.addClass(meta_classes) }}>
{{ content.field_event_location }}
</div>
{% endif %}
{% if not node.isPublished() %}
<div class="unpublished">Unpublished</div>
{% endif %}
Expand Down

0 comments on commit 2dc5e84

Please sign in to comment.