Update template

pull/6/head
beucismis 1 year ago
parent f9f85e5479
commit 582a3dbf7b
  1. 11
      ozgursozluk/templates/debe.html
  2. 8
      ozgursozluk/templates/index.html
  3. 16
      ozgursozluk/templates/paginate.html

@ -7,13 +7,18 @@
{% block main %}
<nav>{% include "navigation.html" %}</nav>
<div class="topic">
<div class="info"><div><p>debe - <a href="/">gündem</a></p></div></div>
<div class="info">
<div>
<p>debe - <a href="/">gündem</a></p>
</div>
<div></div>
</div>
{% for entry in debe %}
<div class="entry">
<div style="display: flex; justify-content: space-between;">
<div>
<div>
<a style="text-decoration: none;" href="{{ url_for('entry', id=entry.id) }}">
{{ entry.title }}
{{ entry.title[:50] }}{% if entry.title|length > 50%}...{% endif %}
</a>
</div>
</div>

@ -14,7 +14,9 @@
<a href="{{ url_for('index', p=p-1) }}">previous</a>
{% if p < 3 %}/{% endif %}
{% endif %}
{% if p < 3 %}<a href="{{ url_for('index', p=p+1) }}">next</a>{% endif %}
{% if p < 3 %}
<a href="{{ url_for('index', p=p+1) }}">next</a>
{% endif %}
{% if 3 > 1 %}
-
<a href="{{ url_for('index', p=3) }}">last page</a>
@ -64,7 +66,9 @@
<a href="{{ url_for('index', p=p-1) }}">previous</a>
{% if p < 3 %}/{% endif %}
{% endif %}
{% if p < 3 %}<a href="{{ url_for('index', p=p+1) }}">next</a>{% endif %}
{% if p < 3 %}
<a href="{{ url_for('index', p=p+1) }}">next</a>
{% endif %}
{% if 3 > 1 %}
-
<a href="{{ url_for('index', p=3) }}">last page</a>

@ -1,9 +1,7 @@
<div>
{% if a %}
{% if p > 1 %}
<a href="{{ url_for('topic', path=topic.path, p=p-1) }}">
previous
</a>
<a href="{{ url_for('topic', path=topic.path, p=p-1) }}">previous</a>
{% if p < topic.page_count %}/{% endif %}
{% endif %}
{% if p < topic.page_count %}
@ -11,15 +9,11 @@
{% endif %}
{% if topic.page_count > 1 %}
-
<a href="{{ url_for('topic', path=topic.path, p=topic.page_count) }}">
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', path=topic.path, p=p-1, a=a) }}">
previous
</a>
<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 %}
@ -27,9 +21,7 @@
{% endif %}
{% if topic.page_count > 1 %}
-
<a href="{{ url_for('topic', path=topic.path, p=topic.page_count, 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…
Cancel
Save