mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-26 02:38:31 +02:00
refactor: extendable templates
refactor: simplification refactor: simplification
This commit is contained in:
15
html-router/templates/components/_icon_macro.html
Normal file
15
html-router/templates/components/_icon_macro.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% macro icon(name) %}
|
||||
{% if name == "home" %}
|
||||
{% include "icons/home_icon.html" %}
|
||||
{% elif name == "book" %}
|
||||
{% include "icons/book_icon.html" %}
|
||||
{% elif name == "document" %}
|
||||
{% include "icons/document_icon.html" %}
|
||||
{% elif name == "chat" %}
|
||||
{% include "icons/chat_icon.html" %}
|
||||
{% elif name == "search" %}
|
||||
{% include "icons/search_icon.html" %}
|
||||
{% elif name == "scratchpad" %}
|
||||
{% include "icons/scratchpad_icon.html" %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user