{{ title }}
- {{ macros.feed_title(entry.feed) }}
- {%- set published = entry.published or entry.updated_not_none -%} {{ 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, title=entry.read_modified or "not modified") }} {% else %} {{ macros.simple_button('.form_api', 'mark-as-read', 'read', leave_disabled=true, next=next, context=context, title=entry.read_modified or "not modified") }} {% endif %} {% if not entry.important %} {{ macros.simple_button('.form_api', 'mark-as-important', 'important', leave_disabled=true, next=next, context=context, title=entry.important_modified or "not modified") }} {% endif %} {% if entry.important is not none %} {{ macros.simple_button('.form_api', 'clear-important', "clear " + ("important" if entry.important else "don't care"), leave_disabled=true, next=next, context=context) }} {% endif %} {% if entry.important is not false %} {{ macros.simple_button('.form_api', 'mark-as-unimportant', "don't care", leave_disabled=true, next=next, context=context, title=entry.important_modified or "not modified") }} {% endif %} {% if entry.added_by == 'user' %} {{ macros.confirm_button('.form_api', 'delete-entry', 'delete', leave_disabled=true, next=url_for('.entries', **request.args), context=context) }} {% endif %} {% endif %} {# not read only #} {{ macros.readtime(tags) }} {% 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), ('clear-important', feed.url, entry.id), ('mark-as-unimportant', feed.url, entry.id), ('delete-entry', feed.url, entry.id), ) %}
- {{ message }} {% endfor %}
{{ content.value }}{%- else -%} {{ content.value | safe }} {%- endif %}
no content
{% endif %} {% else %} {% if summary %}{# TODO: maybe unify entry / search result content or something? #} {% if not request.args.q %} {{ summary.value | striptags | truncate }} {% else %} {{ summary.value }} {% endif %} {% if not read_only %} more {% endif %}
{% endif %} {% endif %} {{ macros.entry_enclosures(entry) }}