Extensions list: sort_by parameter #159
@ -34,29 +34,15 @@
|
|||||||
<div class="box-filter-sort-start d-none h-100 js-box-filter-sort-start position-absolute start-0 top-0 w-5 z-1"></div>
|
<div class="box-filter-sort-start d-none h-100 js-box-filter-sort-start position-absolute start-0 top-0 w-5 z-1"></div>
|
||||||
<div class="btn-row flex-nowrap js-box-filter-sort-btns overflow-x-auto">
|
<div class="btn-row flex-nowrap js-box-filter-sort-btns overflow-x-auto">
|
||||||
<a class="align-items-center btn btn-sm d-flex {% if not tag %}btn-primary{% endif %}" href="{% url 'extensions:by-type' type_slug=type|slugify %}" title="All">
|
<a class="align-items-center btn btn-sm d-flex {% if not tag %}btn-primary{% endif %}" href="{% url 'extensions:by-type' type_slug=type|slugify %}" title="All">
|
||||||
{% if tag %}
|
<div>
|
||||||
|
All
|
||||||
|
</div>
|
||||||
|
<div class="align-items-center bg-primary d-flex h-3 fs-xs justify-content-center ms-2 rounded-circle w-3">
|
||||||
|
1
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{% for list_tag in tags %}
|
||||||
{# TODO @back-end: Find a proper way to get the plural tag type to build the URL. #}
|
{# TODO @back-end: Find a proper way to get the plural tag type to build the URL. #}
|
||||||
<a class="btn btn-sm" href="/{{ tag.get_type_display|slugify }}s/" title="All">
|
|
||||||
<div>
|
|
||||||
All
|
|
||||||
</div>
|
|
||||||
<div class="align-items-center bg-primary d-flex h-3 fs-xs justify-content-center ms-2 rounded-circle w-3">
|
|
||||||
1
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{% else %}
|
|
||||||
<a class="btn btn-sm btn-primary" href="{% url 'extensions:by-type' type_slug=type|slugify %}" title="All">
|
|
||||||
<div>
|
|
||||||
All
|
|
||||||
</div>
|
|
||||||
<div class="align-items-center bg-primary d-flex h-3 fs-xs justify-content-center ms-2 rounded-circle w-3">
|
|
||||||
1
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% for list_tag in tags %}
|
|
||||||
{% for list_tag in tags %}
|
|
||||||
<a class="align-items-center btn btn-sm d-flex {% if tag == list_tag %}btn-primary{% endif %}" href="{% url "extensions:by-tag" tag_slug=list_tag.slug %}" title="{{ list_tag.name }}">
|
<a class="align-items-center btn btn-sm d-flex {% if tag == list_tag %}btn-primary{% endif %}" href="{% url "extensions:by-tag" tag_slug=list_tag.slug %}" title="{{ list_tag.name }}">
|
||||||
<div>
|
<div>
|
||||||
{{ list_tag.name }}
|
{{ list_tag.name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user