Delete shortcodes/comm.tmpl~
parent
aca411280f
commit
797b8295a3
|
@ -1,36 +0,0 @@
|
|||
<%doc>
|
||||
Return URL from email and some social networks.
|
||||
|
||||
Template engine: Mako
|
||||
|
||||
Usage:
|
||||
|
||||
{{% url <site> [suffix=<suffix>] %}}
|
||||
|
||||
where <site> is one of 'email', 'xmpp', 'mastodon' or 'peertube', corresponding to GLOBAL_CONTEXT variable of EMAIL_URL, XMPP_URL, MASTODON_URL, PEERTUBE_URL and GIT_URL respectively, and sufix variable allow to add a suffix <suffix> to the URL
|
||||
|
||||
Example: {{% url 'mastodon' }} will show the content of MASTODON_URL defined in GLOBAL_CONTEXT of config.py
|
||||
</%doc>
|
||||
|
||||
% if suffix is UNDEFINED:
|
||||
<% s = '' %>
|
||||
% else:
|
||||
<% s = suffix %>
|
||||
% endif
|
||||
|
||||
% if _args[0] == 'email':
|
||||
${EMAIL_URL}${s}
|
||||
% elif _args[0] == 'xmpp':
|
||||
${XMPP_URL}${s}
|
||||
% elif _args[0] == 'mastodon':
|
||||
${MASTODON_URL}${s}
|
||||
% elif _args[0] == 'peertube':
|
||||
${PEERTUBE_URL}${s}
|
||||
% elif _args[0] == 'git':
|
||||
${GIT_URL}${s}
|
||||
% else:
|
||||
Unknown
|
||||
% endif
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue