22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
{% from 'common/macros.html' import rss_html_content %}
|
|
{%- extends 'base.atom' -%}
|
|
{%- block title -%}latest threads in {{topic.name | escape}}{%- endblock -%}
|
|
{%- block canonical_link -%}{{ url_for('topics.topic_by_id', topic_id=topic.id, _external=true) }}{%- endblock -%}
|
|
{%- block content -%}
|
|
<subtitle>{{ topic.description | escape }}</subtitle>
|
|
{%- for thread in threads_list -%}
|
|
<entry>
|
|
<title>{{ thread.title | escape }}</title>
|
|
<link href="{{ url_for('threads.thread_by_id', thread_id=thread.id, _external=true) }}"/>
|
|
<link rel="replies" type="application/atom+xml" href="{{ url_for('threads.feed', thread_id=thread.id, _external=true) }}"/>
|
|
<id>{{ url_for('threads.thread_by_id', thread_id=thread.id, _external=true) }}</id>
|
|
{{ rss_html_content(thread.original_post_content) }}
|
|
<updated>{{ thread.created_at | iso8601 }}</updated>
|
|
<author>
|
|
<name>{{ thread.started_by_display_name | escape }} @{{ thread.started_by }}</name>
|
|
<uri>{{ url_for('users.user_page', username=thread.started_by, _external=true) }}</uri>
|
|
</author>
|
|
</entry>
|
|
{%- endfor -%}
|
|
{%- endblock -%}
|