mirror of
https://github.com/inventree/inventree-website.git
synced 2025-04-27 21:16:45 +00:00
add linking possibility
This commit is contained in:
parent
b8ffc98209
commit
198c5ec715
@ -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 %}
|
||||
|
@ -9,5 +9,6 @@ long_text: |
|
||||
buttons:
|
||||
- text: lorem ipsum primary
|
||||
primary: true
|
||||
link: http://example.com
|
||||
- text: lorem ipsum
|
||||
---
|
||||
|
Loading…
x
Reference in New Issue
Block a user