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:
3
_includes/fnc/learn_more.html
Normal file
3
_includes/fnc/learn_more.html
Normal 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
11
_includes/fnc/link.html
Normal 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 %}
|
Reference in New Issue
Block a user