Catches more template translation moments
This commit is contained in:
parent
310d4a1f59
commit
6a18803417
26 changed files with 97 additions and 49 deletions
|
@ -1,5 +1,7 @@
|
|||
<a href="/book/{{ book.id }}">{{ book.title }}</a>
|
||||
{% load i18n %}
|
||||
{% if book.authors %}
|
||||
by {% include 'snippets/authors.html' with book=book %}
|
||||
{% blocktrans with path=book.local_path title=book.title %}<a href="{{ path }}">{{ title }}</a> by {% endblocktrans %}{% include 'snippets/authors.html' with book=book %}
|
||||
{% else %}
|
||||
<a href="{{ book.local_path }}">{{ book.title }}</a>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue