2014-08-25 11:45:55 +00:00
{% load i18n thumbnail staticfiles %}
2014-08-25 18:58:25 +00:00
< div class = "well text-center volume-item {% if volume.pk in user_have_volumes %}user-have-it{% endif %} {% if volume.pk in user_wishlisted_volumes %}user-wishlisted-it{% endif %} {{ css_class }}" style = "background: white url({% thumbnail volume.cover 120x150 %}) center left no-repeat;" >
2014-03-31 16:26:03 +00:00
< div class = "badges" >
{% if volume.pk in user_have_volumes %}
2014-03-31 15:54:30 +00:00
< a href = "{% url " volume . have_it " volume . pk % } " data-pjax = "v{{ volume.pk }}" pjax-nopush pjax-messages >
2014-05-27 19:25:10 +00:00
< span class = "badge badge-success badge-have-it" >
2014-03-31 15:54:30 +00:00
< i class = "glyphicon glyphicon-ok" > < / i >
< / span >
< / a >
2014-03-31 10:26:28 +00:00
{% else %}
2014-03-31 15:54:30 +00:00
< a href = "{% url " volume . have_it " volume . pk % } " data-pjax = "v{{ volume.pk }}" pjax-nopush pjax-messages >
2014-05-27 18:11:37 +00:00
< span class = "badge badge-have-it" >
2014-03-31 10:26:28 +00:00
< i class = "glyphicon glyphicon-ok" > < / i >
< / span >
< / a >
2014-03-31 15:54:30 +00:00
< a href = "{% url " volume . wishlist " volume . pk % } " data-pjax = "v{{ volume.pk }}" pjax-messages pjax-nopush >
2014-05-27 18:11:37 +00:00
< span class = "badge badge-wishlist-it {% if volume.pk in user_wishlisted_volumes %}badge-warning{% endif %}" >
2014-03-31 15:54:30 +00:00
< i class = "glyphicon glyphicon-star" > < / i >
< / span >
< / a >
2014-03-31 10:26:28 +00:00
{% endif %}
< / div >
2014-04-25 11:19:34 +00:00
< div class = "text-center volume-content" >
2014-08-24 20:07:15 +00:00
< div class = "volume-number" >
2014-08-25 11:45:55 +00:00
{% if volume.language %}
< img src = "{% static " images / flags / " | add:volume . language . code | add: ' . gif ' code % } " / >
{% endif %}
2014-08-24 20:07:15 +00:00
{% if volume.number %}#{{ volume.number }}{% endif %}
{% if volume.name %}{{ volume.name }}{% endif %}
< / div >
2014-08-25 18:58:25 +00:00
{% if volume.collection and not volume.collection.default %}
< div > < span class = "label label-primary" > {{ volume.collection.name }}< / span > < / div >
{% endif %}
2014-08-24 20:07:15 +00:00
{% if show_publisher %}
< div > < a href = "{{ volume.publisher.get_absolute_url }}" data-pjax > {{ volume.publisher }}< / a > < / div >
2014-04-25 10:47:26 +00:00
{% endif %}
2014-04-25 14:56:57 +00:00
{% if volume.release_date %}
< div > {{ volume.release_date|date:"F Y" }}< / div >
{% endif %}
2014-08-25 18:58:25 +00:00
{% if show_details %}
{% if volume.pages %}
< div > {% blocktrans with pages=volume.pages %}{{ pages }} pages{% endblocktrans %}< / div >
{% endif %}
2014-08-24 20:07:15 +00:00
{% endif %}
{% if volume.for_review and user.is_staff %}
< span class = "label label-warning" > {% trans "Requires review" %}< / span >
{% endif %}
2014-03-31 10:26:28 +00:00
< / div >
2014-08-24 15:20:06 +00:00
{% if USER_IS_STAFF and USER_CONFIG.show_admin_links %}
< div class = "admin" >
< a class = "btn btn-info btn-xs"
href="{% url 'admin:manga_volume_change' volume.pk %}">
{% trans "Edit in admin" %}< / a >
< / div >
{% endif %}
2014-03-31 10:26:28 +00:00
< / div >