Extensions list: sort_by parameter #159
@ -34,9 +34,6 @@
|
||||
<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">
|
||||
<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 %}
|
||||
{# 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>
|
||||
@ -44,19 +41,8 @@
|
||||
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 %}
|
||||
{# TODO @back-end: Find a proper way to get the plural tag type to build the URL. #}
|
||||
<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>
|
||||
{{ list_tag.name }}
|
||||
|
Loading…
Reference in New Issue
Block a user