diff --git a/.doit.db.db b/.doit.db.db
index 37d2620..4d8df26 100644
Binary files a/.doit.db.db and b/.doit.db.db differ
diff --git a/files/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.
+
+
+
No existen 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
%doc>
% 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('') %>