Commit 219be2c8 authored by Michal Čihař's avatar Michal Čihař

Add assignment tag for documentation url

parent d119641a
......@@ -245,6 +245,14 @@ def documentation(page, anchor=''):
return weblate.get_doc_url(page, anchor)
@register.assignment_tag
def doc_url(page, anchor=''):
'''
Returns link to Weblate documentation.
'''
return weblate.get_doc_url(page, anchor)
@register.simple_tag
def admin_boolean_icon(val):
'''
......
Markdown is supported
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