2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-13 02:25:31 +00:00

add linking possibility

This commit is contained in:
Matthias Mair
2022-04-23 00:03:34 +02:00
parent b8ffc98209
commit 198c5ec715
2 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,9 @@
{% if include.buttons %}
<div class="flex-wrap justify-center">
{% 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">{{item.text}}</button>
<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 %}
</button>
{% endfor %}
</div>
{% endif %}