summaryrefslogtreecommitdiffstats
path: root/templates/html/htmlobjlink.tpl
blob: 5d3c3f4fd7ecba0a1b47db419615005957d3b4db (plain)
1
2
3
4
5
6
7
8
9
10
{# inputs: obj (with .isLinkable .isReference .anchor .fileName .externalReference), text, config, page.relPath #}
{% if obj.isLinkable %}
{% if obj.isReference %}
<a class="elRef" href="{{ obj.externalReference }}{{ obj.fileName }}{{ config.HTML_FILE_EXTENSION }}{% if obj.anchor %}#{{ obj.anchor }}{% endif %}">{{ text }}</a>
{% else %}
<a class="el" href="{{ page.relPath }}{{ obj.fileName }}{{ config.HTML_FILE_EXTENSION }}{% if obj.anchor %}#{{ obj.anchor }}{% endif %}">{{ text }}</a>
{% endif %}
{% else %}
<b>{{ text }}</b>
{% endif %}