{% endif %}
</div>
+{% if list_type == 'default' and not tags %}
+ <section>
+ <h1>{% trans "Recent publications" %}</h1>
+ {% for book in last_published %}
+ {% ssi_include 'catalogue_book_mini' pk=book.pk %}
+ {% endfor %}
+ <a class="more" href="{% url 'recent_list' %}">{% trans "More recent publications" %}</a>
+ </section>
+{% endif %}
+
{% if theme_is_set %}
{% work_list object_list %}
{% else %}
Picture.tagged.with_any([tag]).exists()):
return redirect('tagged_object_list_gallery', raw_tags)
+ # this is becoming more and more hacky
+ if list_type == 'default' and not tags:
+ last_published = Book.objects.exclude(cover_thumb='').filter(parent=None).order_by('-created_at')[:20]
+ else:
+ last_published = None
+
return render_to_response(
'catalogue/tagged_object_list.html',
{
'best': best,
'list_type': list_type,
'daisy': daisy,
+ 'last_published': last_published,
},
context_instance=RequestContext(request))