mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-01 22:11:16 +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 %}
|
{% if book.authors.exists %}
|
||||||
{% blocktrans trimmed with path=book.local_path title=book|book_title %}
|
{% 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 %}
|
{% endblocktrans %} {% include 'snippets/authors.html' with book=book limit=3 %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ book.local_path }}">{{ book|book_title }}</a>
|
<a href="{{ book.local_path }}">{{ book|book_title }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if book.series %}
|
||||||
|
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
{% endspaceless %}
|
{% 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>
|
commented on <a href="{{ book_path }}">{{ book }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% if book.series %}
|
||||||
|
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
|
@ -16,5 +16,9 @@ quoted <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_path }}">{
|
||||||
quoted <a href="{{ book_path }}">{{ book }}</a>
|
quoted <a href="{{ book_path }}">{{ book }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% if book.series %}
|
||||||
|
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% 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>
|
finished reading <a href="{{ book_path }}">{{ book }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% if book.series %}
|
||||||
|
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
|
|
|
@ -12,6 +12,10 @@ started reading <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_p
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
{% if book.series %}
|
||||||
|
({{book.series}} {%if book.series_number %}#{{book.series_number}}) {% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
{% blocktrans trimmed with book_path=book.local_path book=book|book_title %}
|
{% 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>
|
reviewed <a href="{{ book_path }}">{{ book }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% if book.series %}
|
||||||
|
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% 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>
|
stopped reading <a href="{{ book_path }}">{{ book }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% if book.series %}
|
||||||
|
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
|
|
||||||
|
|
|
@ -19,4 +19,9 @@ wants to read <a href="{{ book_path }}">{{ book }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if book.series %}
|
||||||
|
({{book.series}}{%if book.series_number %}, #{{book.series_number}}{% endif %})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
|
|
Loading…
Reference in a new issue