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></div>
</div> </div>
{% for entry in debe %} {% for entry in debe %}
<div class="entry"> <a class="entry" style="text-decoration: none;" href="{{ url_for('entry', id=entry.id) }}">
<div> <div>
<div> <div>{{ entry.title }}</div>
<a style="text-decoration: none;" href="{{ url_for('entry', id=entry.id) }}">
{{ entry.title }}
</a>
</div>
</div> </div>
</div> </a>
{% endfor %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}

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

@ -23,35 +23,13 @@
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% from "macros.html" import render_gundem %}
{% for topic in gundem %} {% for topic in gundem %}
{% if request.cookies.get('display_pinned_topics') == 'true' %} {% if request.cookies.get('display_pinned_topics') == 'true' %}
<a href="{{ url_for('topic', path=topic.path, a='popular') }}" class="entry"> {{ render_gundem(topic) }}
<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>
{% else %} {% else %}
{% if not topic.pinned %} {% if not topic.pinned %}
<a href="{{ url_for('topic', path=topic.path, a='popular') }}" class="entry"> {{ render_gundem(topic) }}
<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>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}

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

Loading…
Cancel
Save