Add button for sort by relevance

This commit is contained in:
crocodilestick
2026-01-29 01:54:14 +01:00
parent 6b4601fc5a
commit 0c8d4a04ca
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ Copyright (C) 2024-2026 Calibre-Web Automated contributors
- zhiyue (1 commits)
# Fork Contributors (crocodilestick/calibre-web-automated)
- crocodilestick (989 commits)
- crocodilestick (991 commits)
- jmarmstrong1207 (73 commits)
- demitrix (30 commits)
- sirwolfgang (29 commits)
+3
View File
@@ -28,6 +28,9 @@
{% endif %}
{% endif %}
<div class="filterheader hidden-xs"><!-- ToDo: Implement filter for search results -->
{% if page == 'search' %}
<a id="relevance" data-toggle="tooltip" title="{{_('Sort by relevance')}}" class="btn btn-primary{% if order == "stored" %} active{% endif%}" href="{{url_for('web.books_list', data=page, sort_param='stored', query=query)}}"><span class="glyphicon glyphicon-search"></span></a>
{% endif %}
<a id="new" data-toggle="tooltip" title="{{_('Sort according to book date, newest first')}}" class="btn btn-primary{% if order == "new" %} active{% endif%}" href="{{url_for('web.books_list', data=page, sort_param='new', query=query)}}"><span class="glyphicon glyphicon-sort-by-order"></span></a>
<a id="old" data-toggle="tooltip" title="{{_('Sort according to book date, oldest first')}}" class="btn btn-primary{% if order == "old" %} active{% endif%}" href="{{url_for('web.books_list', data=page, sort_param='old', query=query)}}"><span class="glyphicon glyphicon-sort-by-order-alt"></span></a>
<a id="asc" data-toggle="tooltip" title="{{_('Sort title in alphabetical order')}}" class="btn btn-primary{% if order == "abc" %} active{% endif%}" href="{{url_for('web.books_list', data=page, sort_param='abc', query=query)}}"><span class="glyphicon glyphicon-font"></span><span class="glyphicon glyphicon-sort-by-alphabet"></span></a>