Update template

pull/11/head
beucismis 1 year ago
parent 5e9e987726
commit e28cb89817
  1. 10
      ozgursozluk/templates/debe.html
  2. 2
      ozgursozluk/templates/entry.html
  3. 28
      ozgursozluk/templates/index.html
  4. 2
      ozgursozluk/templates/topic.html

@ -14,15 +14,11 @@
<div></div>
</div>
{% for entry in debe %}
<div class="entry">
<a class="entry" style="text-decoration: none;" href="{{ url_for('entry', id=entry.id) }}">
<div>
<div>
<a style="text-decoration: none;" href="{{ url_for('entry', id=entry.id) }}">
{{ entry.title }}
</a>
</div>
<div>{{ entry.title }}</div>
</div>
</div>
</a>
{% endfor %}
</div>
{% endblock %}

@ -17,7 +17,7 @@
</p>
</div>
</div>
{% from "entry_macro.html" import render_entry %}
{% from "macros.html" import render_entry %}
{{ render_entry(entry, False) }}
</div>
{% endblock %}

@ -23,35 +23,13 @@
{% endif %}
</div>
</div>
{% from "macros.html" import render_gundem %}
{% for topic in gundem %}
{% if request.cookies.get('display_pinned_topics') == 'true' %}
<a href="{{ url_for('topic', path=topic.path, a='popular') }}" class="entry">
<div style="display: flex; justify-content: space-between;">
<div>
{{ topic.title }}
</div>
<div>
{% if topic.pinned %}<small style="opacity: 0.5;">pinned</small>{% endif %}
{% if topic.entry_count %}
<small style="opacity: 0.5;">{{ topic.entry_count }}</small>
{% endif %}
</div>
</div>
</div>
{{ render_gundem(topic) }}
{% else %}
{% if not topic.pinned %}
<a href="{{ url_for('topic', path=topic.path, a='popular') }}" class="entry">
<div style="display: flex; justify-content: space-between;">
<div>
{{ topic.title }}
</div>
<div>
{% if topic.entry_count %}
<small style="opacity: 0.5;">{{ topic.entry_count }}</small>
{% endif %}
</div>
</div>
</a>
{{ render_gundem(topic) }}
{% endif %}
{% endif %}
{% endfor %}

@ -23,7 +23,7 @@
{% include "paginate.html" %}
</div>
{% for entry in topic.entrys %}
{% from "entry_macro.html" import render_entry %}
{% from "macros.html" import render_entry %}
{{ render_entry(entry, True) }}
{% endfor %}
<div class="info" style="padding-top: 0;">

Loading…
Cancel
Save