summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Python/function.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/doctemplates/Python/function.tmpl')
-rw-r--r--giscanner/doctemplates/Python/function.tmpl6
1 files changed, 1 insertions, 5 deletions
diff --git a/giscanner/doctemplates/Python/function.tmpl b/giscanner/doctemplates/Python/function.tmpl
index e1fc5d94..072a1185 100644
--- a/giscanner/doctemplates/Python/function.tmpl
+++ b/giscanner/doctemplates/Python/function.tmpl
@@ -1,10 +1,6 @@
<%inherit file="/base.tmpl"/>
<%block name="info">
-% if node.parent is not None:
- <link type="guide" xref="${namespace.name}.${node.parent.name}" group="${page_kind}"/>
-% else:
- <link type="guide" xref="index" group="${page_kind}"/>
-% endif
+ ${formatter.format_xref(node.parent, type="guide", group=page_kind)}
<api:function>
<api:returns>
<api:type>${formatter.format_type(node.retval.type) | x}</api:type>