Added basic tag filters, removed tag filter section temporarily

Update app.py, content.json, and 9 more files...
This commit is contained in:
2025-09-09 00:09:42 +02:00
parent 3e29592b48
commit 54786b6599
11 changed files with 93 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
{% extends "base_www.jinja" %}
{% block main_content %}
{% block content_filters %}{% endblock %}
<!--<hr class="subtle">-->
<!--{% block content_filters %}{% endblock %}-->
{% block content_listing %}{% endblock %}
{% endblock %}

View File

@@ -16,7 +16,7 @@
{% for project_data in get_sorted_projects_by_tags(requested_tags) %}
<hr class="subtle">
<hr class="subtle hide-if-first">
<!--<div class="p-s border r-m">-->
<div class="p-xs r-m">

View File

@@ -9,13 +9,34 @@
{% endblock %}
{% block content_filters %}
[Tools filters here !]
<details class="border bkgd-dark r-m mb-s">
<summary class="p-xs t-noselect">{{ l10n("filters.summary", "content", user_lang) }}</summary>
<div class="p-xs bt bkgd-grey rb-m">
{% for linked_tag in get_tools_linked_tags(requested_tags) %}
<span class="mr-s t-size-10">
<a href="{{ l10n_url_abs('/tools/?tags=' + linked_tag, raw_lang) }}">#{{ linked_tag }}</a>
(+)
</span>
{% endfor %}
<hr class="subtle hide-if-last hide-if-first">
{% for unlinked_tag in get_tools_unlinked_tags(requested_tags) %}
<span class="mr-s">
<a href="{{ l10n_url_abs('/tools/?tags=' + unlinked_tag, raw_lang) }}">#{{ unlinked_tag }}</a>
(+)
</span>
{% endfor %}
</div>
</details>
{% endblock %}
{% block content_listing %}
{% for tool_data in get_sorted_tools_by_tags(requested_tags) %}
<hr class="subtle">
<hr class="subtle hide-if-first">
<!--<div class="p-s border r-m">-->
<div class="p-xs r-m">