|
|
|
@ -22,9 +22,19 @@
|
|
|
|
|
</a>
|
|
|
|
|
<p class="author">
|
|
|
|
|
{% for author in entry.authors %}
|
|
|
|
|
<a href="{{url_for('author', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
|
|
|
|
|
{% if not loop.last %}
|
|
|
|
|
&
|
|
|
|
|
{% if loop.index > config_authors_max and config_authors_max != 0 %}
|
|
|
|
|
{% if not loop.first %}
|
|
|
|
|
<span class="author-hidden-divider">&</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<a class="author-name author-hidden" href="{{url_for('author', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
|
|
|
|
|
{% if loop.last %}
|
|
|
|
|
<a href="#" class="author-expand" data-authors-max="{{config_authors_max}}" data-collapse-caption="({{_('reduce')}})">(...)</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% if not loop.first %}
|
|
|
|
|
<span>&</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<a class="author-name" href="{{url_for('author', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</p>
|
|
|
|
@ -67,9 +77,19 @@
|
|
|
|
|
</a>
|
|
|
|
|
<p class="author">
|
|
|
|
|
{% for author in entry.authors %}
|
|
|
|
|
<a href="{{url_for('author', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
|
|
|
|
|
{% if not loop.last %}
|
|
|
|
|
&
|
|
|
|
|
{% if loop.index > config_authors_max and config_authors_max != 0 %}
|
|
|
|
|
{% if not loop.first %}
|
|
|
|
|
<span class="author-hidden-divider">&</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<a class="author-name author-hidden" href="{{url_for('author', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
|
|
|
|
|
{% if loop.last %}
|
|
|
|
|
<a href="#" class="author-expand" data-authors-max="{{config_authors_max}}" data-collapse-caption="({{_('reduce')}})">(...)</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% if not loop.first %}
|
|
|
|
|
<span>&</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<a class="author-name" href="{{url_for('author', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</p>
|
|
|
|
|