draw the rest of the owl
This commit is contained in:
20
app/templates/topics/topic.atom
Normal file
20
app/templates/topics/topic.atom
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends 'base.atom' %}
|
||||
{% from 'common/macros.html' import rss_html_content %}
|
||||
{% block title %}latest threads in {{target_topic.name}}{% endblock %}
|
||||
{% block canonical_link %}{{url_for('topics.topic', slug=target_topic.slug, _external=true)}}{% endblock %}
|
||||
{% block content %}
|
||||
<subtitle>{{ target_topic.description }}</subtitle>
|
||||
{% for thread in threads_list %}
|
||||
<entry>
|
||||
<title>[new thread] {{ thread.title | escape }}</title>
|
||||
<link href="{{ url_for('threads.thread', slug=thread.slug, _external=true)}}" />
|
||||
<link rel="replies" type="application/atom+xml" href="{{ url_for('threads.thread_atom', slug=thread.slug, _external=true)}}" />
|
||||
<id>{{ url_for('threads.thread', slug=thread.slug, _external=true)}}</id>
|
||||
<updated>{{ thread.created_at | iso8601 }}</updated>
|
||||
{{rss_html_content(thread.original_post_content)}}
|
||||
<author>
|
||||
<name>{{thread.started_by_display_name}} @{{ thread.started_by }}</name>
|
||||
</author>
|
||||
</entry>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -1,4 +1,4 @@
|
||||
{% from 'common/macros.html' import pager, timestamp, motd %}
|
||||
{% from 'common/macros.html' import pager, timestamp, motd, rss_button %}
|
||||
{% from 'common/icons.html' import icn_lock, icn_sticky %}
|
||||
{% extends "base.html" %}
|
||||
{% block title %}browsing topic {{ topic['name'] }}{% endblock %}
|
||||
@@ -6,7 +6,7 @@
|
||||
<nav class="darkbg">
|
||||
<h1 class="thread-title">All threads in "{{topic['name']}}"</h1>
|
||||
<span>{{topic['description']}}</span>
|
||||
<div>
|
||||
<div class="thread-actions">
|
||||
{% if active_user %}
|
||||
{% if not (topic['is_locked']) | int or active_user.is_mod() %}
|
||||
<a class="linkbutton" href="{{ url_for("threads.create", topic_id=topic['id']) }}">New thread</a>
|
||||
@@ -18,6 +18,7 @@
|
||||
<input class="warn" type="submit" id="lock" value="{{"Unlock topic" if topic['is_locked'] else "Lock topic"}}">
|
||||
</form>
|
||||
<button type="button" class="critical" id="topic-delete-dialog-open">Delete</button>
|
||||
{{ rss_button(url_for('topics.topic_atom', slug=topic.slug)) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user