<%doc> Load gancio-events-detect.js and call ActivePastEventsIfNotNexts() when page is load Template engine: Mako Usage: {{% 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: <% tn = '0' %> % else: <% tn = tab_next %> % endif % if tab_past is UNDEFINED: <% tp = '1' %> % 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 + '\", \"' + mid + '\"' %> <% site.template_hooks['body_end'].append('') %>