<section class="see-also" style="display: inline-block;">
<h1>{% trans "Other versions" %}:</h1>
{% for rel in book.other_versions %}
- {% ssi_include 'book_mini' pk=rel.pk %}
+ {% ssi_include 'catalogue_book_mini' pk=rel.pk %}
{% endfor %}
</section>
{% endif %}
collections = models.Collection.objects.all()
def render_tag_list(tags):
- render_to_string('catalogue/tag_list.html', tag_list(tags))
+ return render_to_string('catalogue/tag_list.html', tag_list(tags))
def render_split(with_books, with_pictures):
ctx = {}
all_books = models.Book.tagged.with_all(tags)
if shelf_is_set:
books = all_books.order_by('sort_key_author', 'title')
- pictures = Pictures.objects.none()
+ pictures = Picture.objects.none()
related_book_tags = models.Tag.objects.usage_for_queryset(
books, counts=True).exclude(
category='set').exclude(pk__in=tags_pks)
result = [prefix, tags_list]
else:
result = {"matches": tags_list}
- return JsonResponse(result, callback)
+ response = JsonResponse(result, safe=False)
+ if callback:
+ response.content = callback + "(" + response.content + ");"
+ return response
# =========
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
-{% load funding_tags %}
+{% load ssi_include from ssify %}
{% load pagination_tags %}
{% block titleextra %}{% trans "All fundraisers" %}{% endblock %}
<h2>{% trans "Previous fundraisers:" %}</h2>
{% endif %}
- {% funding offer link=1 show_title_calling=False %}
+ {% ssi_include 'funding_list_bar' pk=offer.pk %}
<div class="white-box normal-text">
{% if is_current %}
<h3>{% trans "Help free the book!" %}</h3>
{{ offer.description|safe }}
{% endif %}
- {% offer_status offer %}
- {% offer_status_more offer %}
+ {% ssi_include 'funding_status' pk=offer.pk %}
+ {% ssi_include 'funding_status_more' pk=offer.pk %}
+
</div>
{% if is_current and not forloop.last %}
form=form,
voted_already=voted_already,
vote_count=poll.vote_count,
- show_results=show_results
+ show_results=show_results,
+ request=context.get('request'),
)