Wiki: macro pour donner un lien canonique vers pad
This commit is contained in:
parent
748dff3021
commit
9b0b8faf1e
1 changed files with 11 additions and 0 deletions
11
wiki/macro/Pad.py
Normal file
11
wiki/macro/Pad.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
def execute(macro, args):
|
||||||
|
name = macro.request.page.page_name
|
||||||
|
|
||||||
|
name = name.split('/')[-1]
|
||||||
|
|
||||||
|
url = "http://pad.crans.org/p/" + name
|
||||||
|
return macro.formatter.rawHTML("""Lien vers l'<a href="%s">
|
||||||
|
etherpad associé</a>""" % url)
|
Loading…
Add table
Add a link
Reference in a new issue