First pass at basic RSS

This commit is contained in:
Chad Nelson
2021-01-20 17:15:15 -05:00
parent 0700a71803
commit 0fe2e7a356
5 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1 @@
{{ obj.pure_content | safe }}

View File

@ -0,0 +1,15 @@
{{ obj.user.username }}{% if obj.status_type == 'GeneratedNote' %}
{{ obj.content | safe }}
{% elif obj.status_type == 'Review' and not obj.name and not obj.content%}
rated
{% elif obj.status_type == 'Review' %}
reviewed
{% elif obj.status_type == 'Comment' %}
commented on
{% elif obj.status_type == 'Quotation' %}
quoted
{% endif %}
{% if obj.book %}{{ obj.book.title | safe}}
{% elif obj.mention_books %}
{{ obj.mention_books.first.title }}
{% endif %}