1 {% extends "base.html" %}
3 {% load catalogue_tags chunks %}
5 {% block bodyid %}document-list-body{% endblock %}
7 {% block title %}{% trans "Hand-outs for teachers on " %}WolneLektury.pl{% endblock %}
10 <script type="text/javascript" charset="utf-8">
12 $('#document-list a').click(function() {
13 if (!$(this).hasClass('active')) {
14 $('#document-list a').removeClass('active');
15 $(this).addClass('active');
16 document.location.hash = $(this).attr('data-hash');
23 function checkHash() {
24 if (document.location.hash != lastHash) {
25 lastHash = document.location.hash;
26 var documentLink = $('#document-list a[data-hash=' + document.location.hash + ']');
27 if (!documentLink.hasClass('active')) {
28 $('#document-list a').removeClass('active');
29 documentLink.addClass('active');
32 if ($('#document-detail').attr('data-hash') != lastHash) {
34 .attr('data-hash', lastHash)
35 .load(documentLink.attr('href'));
37 } else if (!document.location.hash) {
38 $('#document-list a:first').click();
41 setTimeout(checkHash, 500);
47 {% endblock extrahead %}
49 <h1>{% trans "Hand-outs for teachers" %}</h1>
50 <form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form">
51 <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to homepage" %}</a></p>
54 <div id="document-list">
56 {% for object in object_list %}
57 <li><a href="{{ object.get_absolute_url }}" data-hash="#{{ object.slug }}">{{ object }}</a></li>
61 <div id="document-detail">