Refactor templates and utility functions for improved rendering and usability; enhance icon usage and link handling in various templates

This commit is contained in:
Yaro Kasear 2025-06-17 12:51:01 -05:00
parent b68c25a05a
commit 3915b97231
12 changed files with 102 additions and 90 deletions

View file

@ -1,3 +1,5 @@
{% import "fragments/_icon_fragment.html" as icons %}
{% macro category_link(endpoint, label, icon_html=none, arguments={}) %}
<div class="col text-center">
<a href="{{ url_for('main.' + endpoint, **arguments) }}"
@ -20,3 +22,9 @@
</a>
</li>
{% endmacro %}
{% macro entry_link(endpoint, id) %}
<a href="{{ url_for('main.' + endpoint, id=id) }}" class="link-success link-underline-opacity-0">
{{ icons.link(12) }}
</a>
{% endmacro %}