fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Publishers on series detail page now links to publisher detail page instead of publishers homepage

This commit is contained in:
Felipe Martin 2014-04-02 15:57:40 +02:00
parent a015c74c47
commit 85d000be60
1 changed files with 5 additions and 1 deletions

View File

@ -35,7 +35,11 @@
<ul class="list-group">
{% for publisher in item.publishers %}
<li class="list-group-item">
<a href="{% if publisher.url %}{{ publisher.url }}{% else %}#{% endif %}" target="_blank">{{ publisher.name }}</a>
{% if publisher.slug %}
<a href="{% url 'publishers.detail' publisher.pk publisher.slug %}">{{ publisher.name }}</a>
{% else %}
<a href="{% url 'publishers.detail' publisher.pk %}">{{ publisher.name }}</a>
{% endif %}
</li>
{% endfor %}
</ul>