2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-28 13:36:47 +00:00

use internal link parser

This commit is contained in:
Matthias Mair 2022-04-23 00:12:12 +02:00
parent 558404d11f
commit 18cbb42ed2

View File

@ -16,7 +16,7 @@
<div class="flex-wrap justify-center"> <div class="flex-wrap justify-center">
{% for item in include.buttons %} {% for item in include.buttons %}
<button class="{% if forloop.index != 0 %}ml-4{% endif %} mb-4 {% if item.primary %}cm-hvr-btn-primary{% else%}cm-hvr-btn{% endif %} inline-flex border-0 py-2 px-6 focus:outline-none text-lg"> <button class="{% if forloop.index != 0 %}ml-4{% endif %} mb-4 {% if item.primary %}cm-hvr-btn-primary{% else%}cm-hvr-btn{% endif %} inline-flex border-0 py-2 px-6 focus:outline-none text-lg">
{% if item.link %}<a href="{{item.link}}">{% endif %}{{item.text}}{% if item.link %}</a>{% endif %} {% if item.link %}<a href="{% include fnc/link.html item=item.link %}">{% endif %}{{item.text}}{% if item.link %}</a>{% endif %}
</button> </button>
{% endfor %} {% endfor %}
</div> </div>