mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
add series number on posts in the feed
This commit is contained in:
parent
193aeff4d2
commit
629acbaa19
8 changed files with 37 additions and 1 deletions
|
@ -9,12 +9,19 @@
|
|||
|
||||
{% if book.authors.exists %}
|
||||
{% blocktrans trimmed with path=book.local_path title=book|book_title %}
|
||||
<a href="{{ path }}">{{ title }}</a> by
|
||||
<a href="{{ path }}">{{ title }}
|
||||
</a>
|
||||
by
|
||||
{% endblocktrans %} {% include 'snippets/authors.html' with book=book limit=3 %}
|
||||
|
||||
{% else %}
|
||||
<a href="{{ book.local_path }}">{{ book|book_title }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if book.series %}
|
||||
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endcache %}
|
||||
{% endspaceless %}
|
||||
|
|
|
@ -16,5 +16,9 @@ commented on <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_path
|
|||
commented on <a href="{{ book_path }}">{{ book }}</a>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% if book.series %}
|
||||
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
|
|
@ -16,5 +16,9 @@ quoted <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_path }}">{
|
|||
quoted <a href="{{ book_path }}">{{ book }}</a>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% if book.series %}
|
||||
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
|
|
@ -18,5 +18,9 @@ finished reading <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_
|
|||
finished reading <a href="{{ book_path }}">{{ book }}</a>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% if book.series %}
|
||||
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
|
|
|
@ -12,6 +12,10 @@ started reading <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_p
|
|||
{% endblocktrans %}
|
||||
{% endwith %}
|
||||
|
||||
{% if book.series %}
|
||||
({{book.series}} {%if book.series_number %}#{{book.series_number}}) {% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
|
||||
{% blocktrans trimmed with book_path=book.local_path book=book|book_title %}
|
||||
|
|
|
@ -16,5 +16,9 @@ reviewed <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_path }}"
|
|||
reviewed <a href="{{ book_path }}">{{ book }}</a>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% if book.series %}
|
||||
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
|
|
@ -18,6 +18,10 @@ stopped reading <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_p
|
|||
stopped reading <a href="{{ book_path }}">{{ book }}</a>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% if book.series %}
|
||||
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
|
||||
|
|
|
@ -19,4 +19,9 @@ wants to read <a href="{{ book_path }}">{{ book }}</a>
|
|||
{% endblocktrans %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if book.series %}
|
||||
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||
{% endif %}
|
||||
|
||||
{% endspaceless %}
|
||||
|
|
Loading…
Reference in a new issue