2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-08-07 04:52:09 +00:00

add extend functionality

This commit is contained in:
2021-11-08 19:10:40 +01:00
parent 1e9f518582
commit 05eba87a8f
3 changed files with 9 additions and 4 deletions

View File

@@ -9,7 +9,10 @@
{% for item in include.data.functions %}
<div class="xl:w-1/{{ function_len }} lg:w-1/2 md:w-full px-8 py-6">
<h2 class="text-lg sm:text-xl cm-gray-1 font-medium title-font mb-2">{{ item.title }}</h2>
<p class="leading-relaxed text-base mb-4">{{ item.text }}</p>
<p class="leading-relaxed text-base mb-4">
{{ item.text }}
{% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
</p>
{% if item.link %}
<a class="text-secondary inline-flex items-center" href="{{ item.link }}">Learn More {% include learn_more.html %}</a>
{% endif %}