-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
021b4f0
commit 5b86cbc
Showing
8 changed files
with
118 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 1 addition & 40 deletions
41
lacommunaute/templates/forum/forum_documentation_category.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
{% load url_add_query %} | ||
<div class="container-fluid d-flex justify-content-center c-box"> | ||
Filtrez par sous-catégorie : | ||
{% for tag in tags %} | ||
<a href="{% url_add_query request.path forum_tags=tag.slug %}"> | ||
{% if tag.slug == active_forum_tag_slug %} | ||
{% include "partials/tag.html" with tag=tag highlight=1 only %} | ||
{% else %} | ||
{% include "partials/tag.html" with tag=tag only %} | ||
{% endif %} | ||
</a> | ||
{% if forloop.last and active_forum_tag_slug %} | ||
<a href="{{ request.path }}"><span class="tag bg-light text-muted"><i class="ri-close-circle-fill"></i> supprimer le filtre</span></a> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% for tag in tags %} | ||
{% if path and tag.slug == active_forum_tag_slug %} | ||
<a href="{{ path }}" class="tag bg-info text-white" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Supprimer ce filtre"> | ||
<i class="ri-close-circle-fill"></i> | ||
{{ tag.name }} | ||
</a> | ||
{% elif path %} | ||
{% url_add_query path forum_tags=tag.slug as url_with_query_params %} | ||
<a href="{{ url_with_query_params }}" class="tag bg-info-lighter text-info">{{ tag.name }}</a> | ||
{% else %} | ||
<span class="tag bg-info-lighter text-info">{{ tag.name }}</span> | ||
{% endif %} | ||
{% endfor %} | ||
{% comment %} | ||
<button id="filtertopics-button" hx-target="#topicsarea" hx-swap="outerHTML" hx-push-url="true" hx-get="{{ filter_dropdown_endpoint }}?filter={{ filter.0 }}{% if active_tags %}&tags={{ active_tags }}{% endif %}" class="dropdown-item matomo-event" data-matomo-category="engagement" data-matomo-action="filter" data-matomo-option="topics">{{ filter.1 }} | ||
</button> | ||
|
||
hx-target"#topicsarea" hx-swap="outerHTML" hx-push-url="true" hx-get="{% url forum_extension:subcategory_forums forum.pk forum.slug %}?forum_tags={{ tag.slug }}" class="tag bg-info text-white" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Supprimer ce filtre" | ||
{% endcomment %} |
37 changes: 37 additions & 0 deletions
37
lacommunaute/templates/forum/partials/subcategory_forum_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div id="subforums_area" class="container-fluid"> | ||
{% if sub_forums_tags %} | ||
<div class="c-box"> | ||
<div class="container-fluid d-flex justify-content-center mb-3">Afficher les fiches contenant l'étiquette</div> | ||
<div class="container-fluid d-flex justify-content-center"> | ||
{% include "forum/partials/forum_tags.html" with tags=sub_forums_tags active_forum_tag_slug=active_forum_tag_slug path=request.path only %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="row mt-4" id="documentation-category-subforums"> | ||
{% for node in sub_forums.top_nodes %} | ||
<div class="col-12 col-md-4 mb-3 mb-md-5"> | ||
<div class="card c-card has-one-link-inside h-100"> | ||
{% if node.obj.image %} | ||
<div class="card-header card-header-thumbnail rounded"> | ||
<img src="{{ node.obj.image.url }}" alt="{{ node.obj.name }}" class="img-fitcover img-fluid" loading="lazy" /> | ||
</div> | ||
{% endif %} | ||
<div class="card-body pb-0"> | ||
<p class="h3 lh-base">{{ node.obj.name }}</p> | ||
<div>{% include "forum/partials/forum_tags.html" with tags=node.obj.tags.all only %}</div> | ||
{% if node.obj.short_description %}<div class="mt-3">{{ node.obj.short_description }}</div>{% endif %} | ||
</div> | ||
<div class="card-footer text-end"> | ||
<a href="{% url 'forum_extension:forum' node.obj.slug node.obj.id %}" | ||
class="btn btn-sm btn-ico btn-link stretched-link matomo-event" | ||
data-matomo-category="engagement" | ||
data-matomo-action="view" | ||
data-matomo-option="fiches_techniques"> | ||
<i class="ri-arrow-right-line ri-lg"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
lacommunaute/templates/forum_conversation/partials/topic_tags.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% load url_add_query %} | ||
{% for tag in tags %} | ||
{% url_add_query request.path tags=tag.slug page=1 as url_with_query_params %} | ||
{% include "partials/tag.html" with tag=tag url=url_with_query_params only %} | ||
<a href="{{ url_with_query_params }}" class="tag bg-info-lighter text-info">{{ tag.name }}</a> | ||
{% endfor %} |
This file was deleted.
Oops, something went wrong.