From 506c7ab5fae3e8035fc487232e717dec1128e16b 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. Nikola version: 8.3.3 --- .doit.db.db | Bin 270336 -> 270336 bytes files/assets/js/gancio-events-detect.js | 10 +++++++++- pages/events.md | 10 ++++++++-- shortcodes/gancio-events-detect.tmpl | 14 ++++++++++---- 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/.doit.db.db b/.doit.db.db index 37d26201ad39e894896c8225097a4b67f168cc72..4d8df26d65f9218f4d10b97c67825b37f2374bc6 100644 GIT binary patch delta 1126 zcmb7@O=z4&7{@a+n}pqDo9*XrLekwP8^ts%^Zm|vD8b&epolc0)cAfLM8(=z5i6$j zP)V$bzNQa&Xlq0TKQMHKy~#$zgNlhXictvmC|H_$QNgcyt@Y-im$^Lif9C)Ep8w3W zOEc}#@}63CF5gkS(s#M9+4pVni(*=Qv>5k#z4e~0!dm{5{9IGj4(C($;O*(5TV6{a z8XHlb@B+#Cbfudfl;pJ6ag=aTOxp`&m zSBq{-m!nGa&*ZljKtfQT<>f|@11PAJ<0QX?mXYCRxz=5pokxQfs#dWe5UK&9=TX&73lR2dXGYzh_GS-gQ zjAv;!woL*iLLTebnf9%3DHT!V3Cm>?2-`wqsP?9CTG8M_s!VD#Y{RjPoj_1O;L6tl z3mD=r?a^oyZ%7R43uIMmC zVZf}75}(IPc(GK{-mqMO)e7!|%B^@Cyj{TqslIa%4xJ%Ar#t&`tFxbcH|1TYDd=^Y zjEO8nE&#D{`O%>t3d{T`2sw{wObw4sK$)}H_c`j?L#sO)gsAv#mD2vr;owO z3+R>f;Ww)3dl#FneUqq)(kH(941SnKZCK!_&?+4#tJqVFszwILXqoLmx^p<Q3mpXsXNFoWv{G@X5>ADP8IMCw vY4m@LenZgy3BLdnGw!1-T*kZLf%owVXm8>6YwfyPImdn{AV9ek>u4>&%%sGiMM>uy-m%3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assets/js/gancio-events-detect.js b/files/assets/js/gancio-events-detect.js index ed6d533..517bb1d 100644 --- a/files/assets/js/gancio-events-detect.js +++ b/files/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/pages/events.md b/pages/events.md index d34cdc1..0c64e54 100644 --- a/pages/events.md +++ b/pages/events.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' %}} diff --git a/shortcodes/gancio-events-detect.tmpl b/shortcodes/gancio-events-detect.tmpl index 3418b29..2cf6169 100644 --- a/shortcodes/gancio-events-detect.tmpl +++ b/shortcodes/gancio-events-detect.tmpl @@ -4,10 +4,10 @@ Load gancio-events-detect.js and call ActivePastEventsIfNotNexts() when page is Template engine: Mako Usage: -tab_next, tab_past - {{% gancio-events-detect ge_id= [tab_next=] [tab_past=] %}} -where is the ID of past gancio-events HTML tag, tab_next and tab_past are the number of tabs for next and past events + {{% gancio-events-detect ge_id= [tab_next=] [tab_past=] [msg_id=] %}} + +where is the ID of past gancio-events HTML tag, tab_next and tab_past are the number of tabs for next and past events, and is the ID of a element to show % if tab_next is UNDEFINED: @@ -20,9 +20,15 @@ where is the ID of past gancio-events HTML tag, tab_next and tab_past ar % else: <% tp = tab_past %> % endif +% if msg_id is UNDEFINED: + <% mid = 'none' %> +% else: + <% mid = msg_id %> +% endif + <% site.template_hooks['body_end'].append('') %> -<% params = '\"' + ge_id + '\", \"' + tn + '\", \"' + tp + '\"' %> +<% params = '\"' + ge_id + '\", \"' + tn + '\", \"' + tp + '\", \"' + mid + '\"' %> <% site.template_hooks['body_end'].append('') %>