Extensions list: sort_by parameter #159

Merged
Márton Lente merged 36 commits from filter-sort into main 2024-06-03 12:57:45 +02:00
Showing only changes of commit 3f8a875f3b - Show all commits

View File

@ -6,10 +6,17 @@
{% block content %} {% block content %}
<div class="row {% if type == 'Add-ons' %}is-row-add-ons{% elif type == 'Themes' %}is-row-themes{% endif %}"> <div class="row {% if type == 'Add-ons' %}is-row-add-ons{% elif type == 'Themes' %}is-row-themes{% endif %}">
<div class="col-md-12 my-4"> <div class="col-md-12 my-4">
{% if type %} {% if tag or type %}
<div class="row mb-3"> <div class="row mb-3">
<div class="col-md-12 d-flex"> <div class="col-md-12 d-flex justify-content-between">
{% if type %}
<h2 class="me-auto">{{ type }}</h2> <h2 class="me-auto">{{ type }}</h2>
{% else %}
<h2 class="align-items-center d-flex mb-0">
<span class="me-3">{% blocktranslate %}Extensions with the tag{% endblocktranslate %}</span>
{% include "extensions/components/badge_tag.html" %}
</h2>
{% endif %}
{% if tags %} {% if tags %}
<div class="d-flex flex-column flex-md-row"> <div class="d-flex flex-column flex-md-row">
@ -42,7 +49,6 @@
1 1
</div> </div>
</a> </a>
{% else %}
{% endif %} {% endif %}
</li> </li>
@ -112,12 +118,6 @@
{% if team %} {% if team %}
<h2>{% blocktranslate %}Extensions by{% endblocktranslate %} <em class="search-highlight">{{ team.name }}</em></h2> <h2>{% blocktranslate %}Extensions by{% endblocktranslate %} <em class="search-highlight">{{ team.name }}</em></h2>
{% endif %} {% endif %}
{% if tag %}
<h2 class="d-flex align-items-center">
<span class="me-3">{% blocktranslate %}Extensions with the tag{% endblocktranslate %}</span>
{% include "extensions/components/badge_tag.html" %}
</h2>
{% endif %}
{% if request.GET.q %} {% if request.GET.q %}
<h2>{{ page_obj.paginator.count }} result{{ page_obj.paginator.count | pluralize }} for <em class="search-highlight">{{ request.GET.q }}</em></h2> <h2>{{ page_obj.paginator.count }} result{{ page_obj.paginator.count | pluralize }} for <em class="search-highlight">{{ request.GET.q }}</em></h2>
{% endif %} {% endif %}