From d251cf185bdff1891e41ac1daf414fe0656a1f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Mon, 16 Sep 2024 12:22:32 +0300 Subject: [PATCH] TMS-1067: Show price-info for event in listing if it's free --- CHANGELOG.MD | 2 ++ partials/ui/event-highlight.dust | 52 ++++++++++++++++++++------------ 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index ad944d3..bbe29e0 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-1067: Show price-info for event in listing if it's free + ## [1.15.0] - 2024-08-21 - TMS-1058: Remove text-decoration & decrease font-size for single-post h1-heading diff --git a/partials/ui/event-highlight.dust b/partials/ui/event-highlight.dust index 809bbeb..62c527e 100644 --- a/partials/ui/event-highlight.dust +++ b/partials/ui/event-highlight.dust @@ -1,9 +1,9 @@
-
+
{?image} @@ -11,48 +11,60 @@

- - {name|s} + + {name|html}

{?short_description} -

{short_description|s}

+

{short_description|kses}

{/short_description} {?primary_keyword} - {primary_keyword|s} + {primary_keyword|html} {/primary_keyword} -
- - {>"ui/icon" icon="date" class="icon--large is-primary mr-4 {classes.event_item_icon}" /} +
+ + {>"ui/icon" icon="date" class="icon--large is-primary mr-4 {classes.event_item_icon|attr}" /} - {date|s} + {date|html}
-
- - {>"ui/icon" icon="time" class="icon--large is-primary mr-4 {classes.event_item_icon}" /} +
+ + {>"ui/icon" icon="time" class="icon--large is-primary mr-4 {classes.event_item_icon|attr}" /} - {time|s} + {time|html}
{?location.name}
- - {>"ui/icon" icon="location" class="icon--large is-primary mr-4 {classes.event_item_icon}" /} + + {>"ui/icon" icon="location" class="icon--large is-primary mr-4 {classes.event_item_icon|attr}" /} - {location.name|s} + {location.name|html}
{/location.name} + {#price} + {?is_free} +
+ + {>"ui/icon" icon="euro" class="icon--large is-primary mr-4 {iclasses.event_item_icon|attr}" /} + + + {price|html} +
+ {/is_free} + {/price} + {?url} - - {Strings.s.common.read_more|s} + + {Strings.s.common.read_more|html} {/url}