{% extends "layout.html" %} {% import "macros.html" as macros %} {% block page_title %} {% if not feed %} Entries {% else %} {{ feed.resolved_title or feed.url }} {% endif %} - {{ super() }} {% endblock %} {% block body %} {{ macros.flashed_messages() }} {%- if not feed %}

Entries

{%- else %}

{{ macros.title_href(feed.resolved_title or feed.url, external=feed.link) }}

{{ macros.subtitle(feed.subtitle) }} {%- if feed and not feed.url.startswith('reader:') %} {%- endif %}
{%- block feed_actions scoped %} {{ macros.csrf_token_field() }} {{ macros.feed_enabled_button(feed) }} {{ macros.change_feed_title_button(feed) }} {{ macros.delete_feed_button(feed) }}
{{ macros.feed_url_button(feed) }}
{%- endblock %}
{% endif %} {% call macros.filter_form(form) %} {{ macros.filter_radio(form.read) }} {{ macros.filter_radio(form.important) }} {{ macros.filter_radio(form.has_enclosures) }} {{ macros.filter_radio(form.sort) }} {% if form.feed.data %}{{ form.feed }}{% endif %} {% endcall %} {% set last = namespace() %} {% for entry in entries %} {%- if loop.last -%} {% set last.entry = entry -%} {% set last.index = loop.index -%} {%- endif -%}

{{ macros.title_href( entry.title or 'untitled', url_for('.entry', feed=entry.feed.url, entry=entry.id), entry.link ) }}

{{ macros.subtitle(entry.get_content(prefer_summary=True).value) }} {% set next_index = loop.index if not loop.last else loop.index - 1 -%} {% set next = url_for('.entries', **request.args) + '#entry-' + (next_index|string) %}
{% block entry_actions scoped %} {{ macros.csrf_token_field() }} {{ macros.entry_read_button(entry) }} {{ macros.entry_important_button(entry) }}
{% for enclosure in entry.enclosures[:1] -%} {%- endfor %}
{% endblock %}
{% else %}

no entries found

{% endfor %} {% endblock %}