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

refactor functions

This commit is contained in:
2022-02-07 01:16:35 +01:00
parent b1f3c19052
commit 41e8c5c3e7
6 changed files with 7 additions and 7 deletions

View File

@ -0,0 +1,3 @@
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-2" viewBox="0 0 24 24">
<path d="M5 12h14M12 5l7 7-7 7"></path>
</svg>

After

Width:  |  Height:  |  Size: 195 B

11
_includes/fnc/link.html Normal file
View File

@ -0,0 +1,11 @@
{% if include.item.site %}
{{ site[include.item.site] }}
{% elsif include.item.internal %}
{{ include.item.internal | relativurl }}
{% elsif include.item.link %}
{{ include.item.link }}
{% elsif include.item.home %}
{{ '/' | relative_url }}
{% else %}
{{ include.item }}
{% endif %}