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