{% extends "base.html" %}
-{% load catalogue pagination_tags %}
+{% load catalogue_tags pagination_tags %}
{% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %}
{% block extrahead %}
<script type="text/javascript">
+ // <![CDATA[
$(function() {
- $('#id_q').labelify({labelledClass: 'blur'});
-
// $('#tags-list ul').addClass('dontsplit');
// $('#tags-list').columnize({width: 180});
trigger: 'a.jqm-trigger',
onShow: function(hash) {
var offset = $(hash.t).offset();
- target.html('<p><img src="/.txt/img/indicator.gif" /> Ładowanie</p>');
+ target.html('<p><img src="/media/img/indicator.gif" /> Ładowanie</p>');
hash.w.css({position: 'absolute', left: offset.left, top: offset.top}).show() },
onLoad: function(hash) {
$('form', hash.w).ajaxForm({
});
}});
});
+ // ]]>
</script>
{% endblock %}
{% block body %}
<h1>{% title_from_tags tags %}</h1>
- <form action="." method="get" accept-charset="utf-8" id="search-form">
- <ol>
- {% for tag in tags %}
- <li class="category"><a href="{% catalogue_url tag %}">{{ tag }}</a> | <a href="{% catalogue_url tags -tag %}">x</a></li>
- {% endfor %}
- <li>{{ form.q }} <input type="submit" value="Szukaj"/></li>
- </ol>
- </form>
+ {% breadcrumbs tags %}
- {% autopaginate books 10 %}
+ {% autopaginate object_list 10 %}
<div id="books-list">
{% with tags|last as last_tag %}
{% if last_tag.has_description %}
{% endif %}
{% endwith %}
<ol>
- {% for book in books %}
- <li>{% include "catalogue/_book.html" %}</li>
+ {% for book in object_list %}
+ <li>{{ book.short_html }}</li>
{% endfor %}
</ol>
{% paginate %}
<div id="set-window">
<div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
<div class="target">
- <p><img src="/.txt/img/indicator.gif" /> Ładowanie</p>
+ <p><img src="/media/img/indicator.gif" /> Ładowanie</p>
</div>
</div>
{% endblock %}
\ No newline at end of file