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' %}}