parent
8b23894ac1
commit
76825373ca
@ -1,6 +1,6 @@ |
|||||||
<form method="POST" action="/"> |
<div class="searchbox"> |
||||||
<div style="display: flex; align-items: center;"> |
<form method="POST" action="/"> |
||||||
<input style="flex: 1;" type="text" placeholder="search topic... e.g: atatürk" name="q"> |
<input type="text" placeholder="search topic... e.g: atatürk" name="q"> |
||||||
<button style="margin-left: 0.5rem;" type="submit">fetch</button> |
<button type="submit">fetch</button> |
||||||
</div> |
</form> |
||||||
</form> |
</div> |
||||||
|
@ -1,23 +1,35 @@ |
|||||||
<div> |
<div> |
||||||
{% if a %} |
{% if a %} |
||||||
{% if p > 1 %} |
{% if p > 1 %} |
||||||
<a href="{{ url_for('topic', title=topic.path, p=p-1) }}">previous</a> |
<a href="{{ url_for('topic', path=topic.path, p=p-1) }}"> |
||||||
{% if p < topic.pagecount %}/{% endif %} |
previous |
||||||
|
</a> |
||||||
|
{% if p < topic.page_count %}/{% endif %} |
||||||
{% endif %} |
{% endif %} |
||||||
{% if p < topic.pagecount %}<a href="{{ url_for('topic', title=topic.path, p=p+1) }}">next</a>{% endif %} |
{% if p < topic.page_count %} |
||||||
{% if topic.pagecount > 1 %} |
<a href="{{ url_for('topic', path=topic.path, p=p+1) }}">next</a> |
||||||
|
{% endif %} |
||||||
|
{% if topic.page_count > 1 %} |
||||||
- |
- |
||||||
<a href="{{ url_for('topic', title=topic.path, p=topic.pagecount) }}">last page</a> |
<a href="{{ url_for('topic', path=topic.path, p=topic.page_count) }}"> |
||||||
|
last page |
||||||
|
</a> |
||||||
{% endif %} |
{% endif %} |
||||||
{% else %} |
{% else %} |
||||||
{% if p > 1 %} |
{% if p > 1 %} |
||||||
<a href="{{ url_for('topic', title=topic.path, p=p-1, a=a) }}">previous</a> |
<a href="{{ url_for('topic', path=topic.path, p=p-1, a=a) }}"> |
||||||
{% if p < topic.pagecount %}/{% endif %} |
previous |
||||||
|
</a> |
||||||
|
{% if p < topic.page_count %}/{% endif %} |
||||||
|
{% endif %} |
||||||
|
{% if p < topic.page_count %} |
||||||
|
<a href="{{ url_for('topic', path=topic.path, p=p+1, a=a) }}">next</a> |
||||||
{% endif %} |
{% endif %} |
||||||
{% if p < topic.pagecount %}<a href="{{ url_for('topic', title=topic.path, p=p+1, a=a) }}">next</a>{% endif %} |
{% if topic.page_count > 1 %} |
||||||
{% if topic.pagecount > 1 %} |
|
||||||
- |
- |
||||||
<a href="{{ url_for('topic', title=topic.path, p=topic.pagecount, a=a) }}">last page</a> |
<a href="{{ url_for('topic', path=topic.path, p=topic.page_count, a=a) }}"> |
||||||
|
last page |
||||||
|
</a> |
||||||
{% endif %} |
{% endif %} |
||||||
{% endif %} |
{% endif %} |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue