2014-08-25 11:45:55 +00:00
|
|
|
{% load i18n thumbnail staticfiles %}
|
2014-08-26 17:18:25 +00:00
|
|
|
|
|
|
|
{% if type == 'slim' %}
|
|
|
|
{% thumbnail volume.cover 80x110 crop as volume_thumb %}
|
|
|
|
{% else %}
|
|
|
|
{% thumbnail volume.cover 120x150 as volume_thumb %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class="well text-center volume-item volume-{{ type }}" style="background: white url({{ volume_thumb.url }}) center left no-repeat;">
|
2014-11-11 08:03:49 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
2014-08-26 17:18:25 +00:00
|
|
|
<div data-pjax-container="v{{ volume.pk }}">
|
|
|
|
{% include "manga/series/includes/volume-badges.html" %}
|
2014-08-24 20:07:15 +00:00
|
|
|
</div>
|
2014-11-11 08:03:49 +00:00
|
|
|
{% endif %}
|
2014-08-26 17:18:25 +00:00
|
|
|
<div class="text-center volume-content">
|
2014-11-11 14:04:45 +00:00
|
|
|
{% if show_name %}
|
|
|
|
<div><strong><a href="{{ volume.series.get_absolute_url }}">{{ volume.series.name }}</a></strong></div>
|
|
|
|
{% endif %}
|
2014-08-26 17:18:25 +00:00
|
|
|
{% if type == 'slim' %}
|
2015-04-13 19:59:50 +00:00
|
|
|
<a href="{{ volume.series.get_absolute_url }}">
|
2015-01-31 14:17:14 +00:00
|
|
|
<h4 class="media-heading">
|
|
|
|
{% if show_language and volume.language %}
|
|
|
|
<img src="{% static "images/flags/"|add:volume.language.code|add:'.gif' code %}" />
|
|
|
|
{% endif %}
|
|
|
|
{{ volume }}
|
|
|
|
</h4>
|
2014-08-26 17:18:25 +00:00
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<div class="volume-number">
|
|
|
|
{% if show_language and volume.language %}
|
|
|
|
<img src="{% static "images/flags/"|add:volume.language.code|add:'.gif' code %}" />
|
|
|
|
{% endif %}
|
|
|
|
{% if volume.number %}#{{ volume.number }}{% endif %}
|
|
|
|
{% if volume.name %}{{ volume.name }}{% endif %}
|
|
|
|
</div>
|
2014-08-25 18:58:25 +00:00
|
|
|
{% endif %}
|
2014-08-26 17:18:25 +00:00
|
|
|
{% if volume.collection and not volume.collection.default %}
|
|
|
|
<div><span class="label label-primary">{{ volume.collection.name }}</span></div>
|
|
|
|
{% endif %}
|
|
|
|
{% if show_publisher %}
|
2015-04-13 19:59:50 +00:00
|
|
|
<div><a href="{{ volume.publisher.get_absolute_url }}">{{ volume.publisher }}</a></div>
|
2014-08-26 17:18:25 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if volume.release_date %}
|
|
|
|
<div>{{ volume.release_date|date:"F Y" }}</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if show_details %}
|
|
|
|
{% if volume.pages %}
|
|
|
|
<div>{% blocktrans with pages=volume.pages %}{{ pages }} pages{% endblocktrans %}</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% 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>
|
2014-08-24 20:07:15 +00:00
|
|
|
{% endif %}
|
2014-03-31 10:26:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|