mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
fix: [title] fix title search empty result
This commit is contained in:
parent
84bc2c0669
commit
b4d3c6256d
2 changed files with 7 additions and 4 deletions
|
@ -126,6 +126,7 @@ def objects_title_search():
|
||||||
dict_objects = titles.get_metas(dict_page['list_elem'], options={'sparkline'})
|
dict_objects = titles.get_metas(dict_page['list_elem'], options={'sparkline'})
|
||||||
else:
|
else:
|
||||||
dict_objects = {}
|
dict_objects = {}
|
||||||
|
dict_page = {}
|
||||||
|
|
||||||
return render_template("search_title_result.html", dict_objects=dict_objects, search_result=search_result,
|
return render_template("search_title_result.html", dict_objects=dict_objects, search_result=search_result,
|
||||||
dict_page=dict_page,
|
dict_page=dict_page,
|
||||||
|
|
|
@ -71,10 +71,12 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% with page=dict_page['page'], nb_page_max=dict_page['nb_pages'], nb_first_elem=dict_page['nb_first_elem'], nb_last_elem=dict_page['nb_last_elem'], nb_all_elem=dict_page['nb_all_elem'] %}
|
{% if dict_page %}
|
||||||
{% set target_url=url_for('objects_title.objects_title_search') + "?search=" + to_search + "&search_type=" + type_to_search + "&case_sensitive=" + case_sensitive|string %}
|
{% with page=dict_page['page'], nb_page_max=dict_page['nb_pages'], nb_first_elem=dict_page['nb_first_elem'], nb_last_elem=dict_page['nb_last_elem'], nb_all_elem=dict_page['nb_all_elem'] %}
|
||||||
{% include 'pagination.html' %}
|
{% set target_url=url_for('objects_title.objects_title_search') + "?search=" + to_search + "&search_type=" + type_to_search + "&case_sensitive=" + case_sensitive|string %}
|
||||||
{% endwith %}
|
{% include 'pagination.html' %}
|
||||||
|
{% endwith %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue