From 29cff39d63b103f21253e12108c9d14368ec0fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patricio=20Garc=C3=ADa?= Date: Sun, 24 Aug 2025 23:43:46 +0100 Subject: [PATCH] Nikola auto commit. Source commit: 506c7ab5fae3e8035fc487232e717dec1128e16b Nikola version: 8.3.3 --- assets/js/gancio-events-detect.js | 10 +++++++++- events/index.html | 9 +++++++-- events/index.md | 10 ++++++++-- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/assets/js/gancio-events-detect.js b/assets/js/gancio-events-detect.js index ed6d533..517bb1d 100644 --- a/assets/js/gancio-events-detect.js +++ b/assets/js/gancio-events-detect.js @@ -30,8 +30,16 @@ function ActivePastEvents(tab_next, tab_past) { } } -function ActivePastEventsIfNotNexts(ge_id, tab_next, tab_past) { +function ShowElement(id) { + const element = document.getElementById(id); + if (element) { + element.style.display = "block"; + } +} + +function ActivePastEventsIfNotNexts(ge_id, tab_next, tab_past, msg_id) { if (GetNextEventsCount(ge_id) == 0) { ActivePastEvents(tab_next, tab_past); } + ShowElement(msg_id); } diff --git a/events/index.html b/events/index.html index d63fcbf..18c4cbe 100644 --- a/events/index.html +++ b/events/index.html @@ -109,17 +109,22 @@ bg-dark
-

No existen mas próximos eventos programados actualmente.

+

+

Si quieres organizar un evento con nosotros contáctanos.

+ + @@ -227,6 +232,6 @@ bg-dark for (let i = 0; i < document.forms.length; i++) document.forms[i].onsubmit = submit; })(); - + diff --git a/events/index.md b/events/index.md index d34cdc1..0c64e54 100644 --- a/events/index.md +++ b/events/index.md @@ -12,14 +12,20 @@ {{% tabpannel active='1' %}} Próximos -

No existen mas próximos eventos programados actualmente.

+ + Pasados {{% /tabpannel %}} + + Si quieres organizar un evento con nosotros {{% doc %}}contáctanos {{% /doc %}}. + -{{% gancio-events-detect ge_id='nextevents' tab_next='0' tab_past='1' %}} +{{% gancio-events-detect ge_id='nextevents' tab_next='0' tab_past='1' msg_id='msg_non_nexts' %}}