Commit 1a93d384 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files loglinks, tests

parent 8b18fb65
......@@ -91,10 +91,12 @@ def log_links(s):
>>> log_links("abcdef")
>>> log_links("[1234]abcdef")
'[<a class="loglink pointer" onclick="\\'admin/log\\', {\\'file\\': \\'../../mnt/result/tmp/out-001234/\\'})">1234</a>]abcdef'
>>> log_links("abcdef(234)")
'abcdef(<a class="loglink" onclick="\\'patient/info\\', {\\'id\\': \\'234\\'})">234</a>)'
'abcdef(<a class="loglink pointer" onclick="\\'patient/info\\', {\\'id\\': \\'234\\'})">234</a>)'
>>> log_links("abcdef(234)abcdef c11")
'abcdef(234)abcdef <a class="loglink" href="?patient=234&config=11">c11</a>'
'abcdef(234)abcdef <a class="loglink pointer" href="?patient=234&config=11">c11</a>'
### Parses the input string
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment