fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Added attribute to show series name in volume box

This commit is contained in:
Felipe Martín 2014-11-11 15:04:45 +01:00
parent 82e25bdc94
commit 3f8b66058a
3 changed files with 5 additions and 2 deletions

View File

@ -14,6 +14,9 @@
</div> </div>
{% endif %} {% endif %}
<div class="text-center volume-content"> <div class="text-center volume-content">
{% if show_name %}
<div><strong><a href="{{ volume.series.get_absolute_url }}">{{ volume.series.name }}</a></strong></div>
{% endif %}
{% if type == 'slim' %} {% if type == 'slim' %}
<a href="{{ volume.series.get_absolute_url }}" data-pjax> <a href="{{ volume.series.get_absolute_url }}" data-pjax>
<h4 class="media-heading">{{ volume }}</h4> <h4 class="media-heading">{{ volume }}</h4>

View File

@ -7,7 +7,7 @@
<div class="row"> <div class="row">
{% for owned_volume in item.have_volumes.all %} {% for owned_volume in item.have_volumes.all %}
<div class="col-sm-4"> <div class="col-sm-4">
{% include "manga/series/includes/volume.html" with volume=owned_volume.volume user=item show_publisher=True %} {% include "manga/series/includes/volume.html" with volume=owned_volume.volume user=item show_publisher=True show_name=True %}
</div> </div>
{% if forloop.counter|divisibleby:3 %} {% if forloop.counter|divisibleby:3 %}
</div> </div>

View File

@ -7,7 +7,7 @@
<div class="row"> <div class="row">
{% for wishlisted_volume in item.wishlisted_volumes.all %} {% for wishlisted_volume in item.wishlisted_volumes.all %}
<div class="col-sm-4"> <div class="col-sm-4">
{% include "manga/series/includes/volume.html" with volume=wishlisted_volume.volume user=item show_publisher=True %} {% include "manga/series/includes/volume.html" with volume=wishlisted_volume.volume user=item show_publisher=True show_name=True %}
</div> </div>
{% if forloop.counter|divisibleby:3 %} {% if forloop.counter|divisibleby:3 %}
</div> </div>