[SIS-xxx] fixing meetup display without location

This commit is contained in:
Sheldan
2025-10-03 18:13:58 +02:00
parent 28da63db37
commit dd5bb63962

View File

@@ -17,20 +17,24 @@
{ {
<#assign time><@format_instant_long_date_time instant=meetupTime/></#assign> <#assign time><@format_instant_long_date_time instant=meetupTime/></#assign>
<#assign timeRelative><@format_instant_relative instant=meetupTime/></#assign> <#assign timeRelative><@format_instant_relative instant=meetupTime/></#assign>
<#if location?? && location != "%22%22">
"type": "section", "type": "section",
"components": [ "components": [
{ {
"type": "textDisplay", "type": "textDisplay",
"content": "<@safe_include "meetup_display_time_component"/>" "content": "<@safe_include "meetup_display_time_component"/>"
} }
] ],
<#if location?? && location != "%22%22"> "accessory": {
,"accessory": {
"type": "button", "type": "button",
"label": "<@safe_include "meetup_message_location_button_label"/>", "label": "<@safe_include "meetup_message_location_button_label"/>",
"url": "https://www.google.com/maps?q=${location?json_string}", "url": "https://www.google.com/maps?q=${location?json_string}",
"buttonStyle": "link" "buttonStyle": "link"
} }
<#else>
"type": "textDisplay",
"content": "<@safe_include "meetup_display_time_component"/>"
</#if> </#if>
} }
<#macro decision_component button_id button_style label_template content_template user> <#macro decision_component button_id button_style label_template content_template user>