{%- if entry.title and entry.title.strip() -%} {{ entry.title | safe }} {%- else -%} untitled {%- endif -%}
- {{ macros.feed_title(entry.feed) }}
- {%- set published = entry.published or entry.updated -%} {{ published | humanize_naturaltime }} {% if not read_only %} {% set next = url_for('.entries', **request.args) + '#entry-' + ((loop.index if not loop.last else loop.index - 1) | string) %} {% set context = {'feed-url': feed.url, 'entry-id': entry.id} %} {% if entry.read %} {{ macros.simple_button('.form_api', 'mark-as-unread', 'unread', leave_disabled=true, next=next, context=context) }} {% else %} {{ macros.simple_button('.form_api', 'mark-as-read', 'read', leave_disabled=true, next=next, context=context) }} {% endif %} {% if entry.important %} {{ macros.simple_button('.form_api', 'mark-as-unimportant', 'unimportant', leave_disabled=true, next=next, context=context) }} {% else %} {{ macros.simple_button('.form_api', 'mark-as-important', 'important', leave_disabled=true, next=next, context=context) }} {% endif %} {% endif %} {# not read only #} {% for message in get_flashed_messages_by_prefix( ('mark-as-read', feed.url, entry.id), ('mark-as-unread', feed.url, entry.id), ('mark-as-important', feed.url, entry.id), ('mark-as-unimportant', feed.url, entry.id), ) %}
- {{ message }} {% endfor %}
{# TODO: maybe unify entry / search result content or something? #} {% if not request.args.q %} {{ content | striptags | truncate }} {% else %} {{ content }} {% endif %} {% if not read_only %} more {% endif %}
{% endif %} {{ macros.entry_enclosures(entry) }}