Refactor templates and utility functions for improved rendering and usability; enhance icon usage and link handling in various templates
This commit is contained in:
parent
b68c25a05a
commit
3915b97231
12 changed files with 102 additions and 90 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue