Extensions list: sort_by parameter #159
@ -6,10 +6,17 @@
|
||||
{% block content %}
|
||||
<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">
|
||||
{% if type %}
|
||||
{% if tag or type %}
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-12 d-flex">
|
||||
<h2 class="me-auto">{{ type }}</h2>
|
||||
<div class="col-md-12 d-flex justify-content-between">
|
||||
{% if type %}
|
||||
<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 %}
|
||||
<div class="d-flex flex-column flex-md-row">
|
||||
@ -42,7 +49,6 @@
|
||||
1
|
||||
</div>
|
||||
</a>
|
||||
{% else %}
|
||||
{% endif %}
|
||||
</li>
|
||||
|
||||
@ -112,12 +118,6 @@
|
||||
{% if team %}
|
||||
<h2>{% blocktranslate %}Extensions by{% endblocktranslate %} <em class="search-highlight">{{ team.name }}</em></h2>
|
||||
{% 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 %}
|
||||
<h2>{{ page_obj.paginator.count }} result{{ page_obj.paginator.count | pluralize }} for <em class="search-highlight">{{ request.GET.q }}</em></h2>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user