You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
846 B
34 lines
846 B
{% extends "sost/base.html" %} |
|
|
|
{% macro search_form_attrs(pageno) -%} |
|
<input type="hidden" name="q" value="{{ q|e }}" /> |
|
<input type="hidden" name="pageno" value="{{ pageno }}" /> |
|
{%- endmacro %} |
|
|
|
{% block title %}{{ q|e }} - {% endblock %} |
|
{% block content %} |
|
<a href="/">Home</a> |
|
{% include 'sost/search.html' %} |
|
|
|
<div id="main_results"> |
|
{% for result in results -%} |
|
<div> |
|
{%- set index = loop.index -%} |
|
{% include 'sost/result_templates/default.html' %} |
|
</div> |
|
{% endfor %} |
|
|
|
{% if paging -%} |
|
{% if pageno != 1 %} |
|
<form method="get" action="/"> |
|
{{- search_form_attrs(pageno-1) -}} |
|
<button type="submit">previous page<button> |
|
</form> |
|
{% endif %} |
|
<form method="get" action="/"> |
|
{{- search_form_attrs(pageno+1) -}} |
|
<button type="submit">next page</button> |
|
</form> |
|
{% endif %} |
|
</div> |
|
{% endblock %}
|
|
|