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

@ -43,11 +43,14 @@ title=title,
)}}
</div>
{% endif %}
{% if not results['inventory']['rows'] and not results['users']['rows'] and not results['worklog']['rows'] %}
<div>There are no results for "{{ query }}".</div>
{% endif %}
</div>
{% endblock %}
{% block script %}
{% if query %}
{% if query and (results['inventory']['rows'] or results['users']['rows'] or results['worklog']['rows']) %}
const query = "{{ query|e }}";
if (query) {
const instance = new Mark(document.querySelector("main"));