<div class='{% if paged %}plain-list-paged {% endif %}plain-list-container white-box'>
-<div class='plain-list' style=''>
-{% for initial, object_list in names %}
- {% if initial_blocks %}<div class="initial-block">{% endif %}
- {% if initial %}
+ <div class="pager-center">
+ <div class="pager"></div>
+ </div>
+ <div class='plain-list' style=''>
+ {% for initial, object_list in names %}
+ {% if initial_blocks %}<div class="initial-block">{% endif %}
+ {% if initial %}
<p class="header">{{ initial }}</p>
- {% endif %}
- {% for item in object_list %}
+ {% endif %}
+ {% for item in object_list %}
<p><a href="{% if book %}{% url 'book_fragments' book.slug item.slug %}{% elif choice %}{% catalogue_url list_type choice item %}{% elif list_type == 'gallery' and item.get_absolute_gallery_url %}{{ item.get_absolute_gallery_url }}{% else %}{{ item.get_absolute_url }}{% endif %}">{{ item }}{% if item.count %} ({{ item.count}}){% endif %}</a></p>
- {% endfor %}
+ {% endfor %}
{% if initial_blocks %}</div>{% endif %}
-{% endfor %}
-</div>
- <div class="pager-center">
- <div class="pager"></div>
- </div>
+ {% endfor %}
+ </div>
</div>
{% endspaceless %}
def literature(request):
books = Book.objects.filter(parent=None)
- last_published = Book.objects.exclude(cover_thumb='').filter(parent=None).order_by('-created_at')[:20]
- most_popular = Book.objects.exclude(cover_thumb='')\
- .order_by('-popularity__count', 'sort_key_author', 'sort_key')[:20]
- return object_list(request, books, related_tags=get_top_level_related_tags([]), extra={
- 'last_published': last_published,
- 'most_popular': most_popular,
- })
+ # last_published = Book.objects.exclude(cover_thumb='').filter(parent=None).order_by('-created_at')[:20]
+ # most_popular = Book.objects.exclude(cover_thumb='')\
+ # .order_by('-popularity__count', 'sort_key_author', 'sort_key')[:20]
+ return object_list(request, books, related_tags=get_top_level_related_tags([]))
+ # extra={
+ # 'last_published': last_published,
+ # 'most_popular': most_popular,
+ # })
def gallery(request):
books = Book.tagged.with_all(shelf_tags).order_by()
fragments = fragments.filter(Q(book__in=books) | Q(book__ancestor__in=books))
- if not fragments and len(tags) == 1:
+ if not fragments and len(tags) == 1 and list_type == 'books':
tag = tags[0]
if tag.category == 'theme' and (
PictureArea.tagged.with_any([tag]).exists() or
if list_type == 'gallery' and any(tag.category == 'set' for tag in tags):
raise Http404
- if any(tag.category == 'theme' for tag in tags):
+ if any(tag.category in ('theme', 'thing') for tag in tags):
return theme_list(request, tags, list_type=list_type)
if list_type == 'books':
'book': book,
'theme': theme,
'fragments': fragments,
+ 'active_menu_item': 'books',
}, context_instance=RequestContext(request))
'book': book,
'tags': book.tags.exclude(category__in=('set', 'theme')),
'book_children': book.children.all().order_by('parent_number', 'sort_key'),
+ 'active_menu_item': 'books',
}, context_instance=RequestContext(request))
if not book.has_html_file():
raise Http404
- return render_to_response('catalogue/book_text.html', {'book': book,}, context_instance=RequestContext(request))
+ return render_to_response('catalogue/book_text.html', {'book': book}, context_instance=RequestContext(request))
# ==========
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
width="13.0625"
- height="21"
+ height="9.0397387"
id="svg6288"
inkscape:version="0.48.4 r9939"
sodipodi:docname="read-white.svg"
showgrid="false"
inkscape:zoom="11.271642"
inkscape:cx="6.426905"
- inkscape:cy="15.412616"
+ inkscape:cy="10.355676"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
+ <dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
- transform="translate(-258.99199,-645.65414)"
+ transform="translate(-258.99199,-652.55746)"
id="layer1"
style="fill:#ffffff">
<g