mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-19 20:36:20 +00:00
Improve feed header for federated generated notes
This works for wants/started/finished reading generated notes, but not yet for "set a goal".
This commit is contained in:
parent
48ac90a984
commit
46bfc184f5
1 changed files with 3 additions and 3 deletions
|
@ -4,11 +4,11 @@
|
||||||
{# Three day cache #}
|
{# Three day cache #}
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
{% cache 259200 generated_note_header LANGUAGE_CODE status.id %}
|
{% cache 259200 generated_note_header LANGUAGE_CODE status.id %}
|
||||||
{% if status.content == 'wants to read' %}
|
{% if status.content == 'wants to read' or status.content == '<p>wants to read</p>' %}
|
||||||
{% include 'snippets/status/headers/to_read.html' with book=status.mention_books.first %}
|
{% include 'snippets/status/headers/to_read.html' with book=status.mention_books.first %}
|
||||||
{% elif status.content == 'finished reading' %}
|
{% elif status.content == 'finished reading' or status.content == '<p>finished reading</p>' %}
|
||||||
{% include 'snippets/status/headers/read.html' with book=status.mention_books.first %}
|
{% include 'snippets/status/headers/read.html' with book=status.mention_books.first %}
|
||||||
{% elif status.content == 'started reading' %}
|
{% elif status.content == 'started reading' or status.content == '<p>started reading</p>' %}
|
||||||
{% include 'snippets/status/headers/reading.html' with book=status.mention_books.first %}
|
{% include 'snippets/status/headers/reading.html' with book=status.mention_books.first %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ status.content }}
|
{{ status.content }}
|
||||||
|
|
Loading…
Reference in a new issue