diff --git a/cps/templates/listenmp3.html b/cps/templates/listenmp3.html index 2067bf38..5b4bbdf7 100644 --- a/cps/templates/listenmp3.html +++ b/cps/templates/listenmp3.html @@ -26,6 +26,208 @@ +
+
+ +
+
+ +

{{entry.title}}

+

+ {% for author in entry.ordered_authors %} + {{author.name.replace('|',',')}} + {% if not loop.last %} + & + {% endif %} + {% endfor %} +

+ {% if entry.ratings.__len__() > 0 %} +
+

+ {% for number in range((entry.ratings[0].rating/2)|int(2)) %} + + {% if loop.last and loop.index < 5 %} + {% for numer in range(5 - loop.index) %} + + {% endfor %} + {% endif %} + {% endfor %} +

+
+ {% endif %} + {% if entry.series|length > 0 %} +

{{_("Book %(index)s of %(range)s", index=entry.series_index | formatfloat(2), range=(url_for('web.books_list', data='series', sort_param='stored', book_id=entry.series[0].id)|escapedlink(entry.series[0].name))|safe)}}

+ + {% endif %} + + {% if entry.languages.__len__() > 0 %} +
+

+ {{_('Language')}}: {% for language in entry.languages %}{{language.language_name}}{% if not loop.last %}, {% endif %}{% endfor %} +

+
+ {% endif %} + + {% if entry.identifiers|length > 0 %} +
+

+ + {% for identifier in entry.identifiers %} + {{identifier.format_type()}} + {%endfor%} +

+
+ {% endif %} + + {% if entry.tags|length > 0 %} + +
+

+ + + {% for tag in entry.tags %} + {{tag.name}} + {%endfor%} +

+ +
+ {% endif %} + + {% if entry.publishers|length > 0 %} +
+

+ {{_('Publisher')}}: + {{entry.publishers[0].name}} + +

+
+ {% endif %} + + {% if (entry.pubdate|string)[:10] != '0101-01-01' %} +
+

{{_('Published')}}: {{entry.pubdate|formatdate}}

+
+ {% endif %} + {% if cc|length > 0 %} + + + {% for c in cc %} +
+ {% if entry['custom_column_' ~ c.id]|length > 0 %} + {{ c.name }}: + {% for column in entry['custom_column_' ~ c.id] %} + {% if c.datatype == 'rating' %} + {{ (column.value / 2)|formatfloat }} + {% else %} + {% if c.datatype == 'bool' %} + {% if column.value == true %} + + {% else %} + + {% endif %} + {% else %} + {% if c.datatype == 'float' %} + {{ column.value|formatfloat(2) }} + {% elif c.datatype == 'datetime' %} + {{ column.value|formatdate }} + {% elif c.datatype == 'comments' %} + {{column.value|safe}} + {% elif c.datatype == 'series' %} + {{ '%s [%s]' % (column.value, column.extra|formatfloat(2)) }} + {% elif c.datatype == 'text' %} + {{ column.value.strip() }}{% if not loop.last %}, {% endif %} + {% else %} + {{ column.value }} + {% endif %} + {% endif %} + {% endif %} + {% endfor %} + {% endif %} +
+ {% endfor %} + {% endif %} + {% if not g.user.is_anonymous %} + +
+

+ + +

+ {% if g.user.check_visibility(32768) %} +

+ + +

+ {% endif %} +
+ {% endif %} + + + {% if entry.comments|length > 0 and entry.comments[0].text|length > 0%} +
+

{{_('Description:')}}

+ {{entry.comments[0].text|safe}} +
+ {% endif %} + + +
+ + {% if g.user.is_authenticated %} + {% if g.user.shelf.all() or g.shelves_access %} + + {% endif %} + + {% endif %} +
+ +
+
+