X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f7833f76b5f9555b0d95d23d47fc886a3528a335..22c91a91ae96e211002d15dea82d76f7fc9fd481:/wolnelektury/templates/lessons/document_list.html?ds=inline diff --git a/wolnelektury/templates/lessons/document_list.html b/wolnelektury/templates/lessons/document_list.html index 1a5ab01d4..d8564a590 100644 --- a/wolnelektury/templates/lessons/document_list.html +++ b/wolnelektury/templates/lessons/document_list.html @@ -1,9 +1,10 @@ {% extends "base.html" %} +{% load i18n %} {% load catalogue_tags chunks %} {% block bodyid %}document-list-body{% endblock %} -{% block title %}MateriaÅy pomocnicze dla nauczycieli w WolneLektury.pl{% endblock %} +{% block title %}{% trans "Hand-outs for teachers on " %}WolneLektury.pl{% endblock %} {% block extrahead %} <script type="text/javascript" charset="utf-8"> @@ -16,9 +17,9 @@ } return false; }); - + var lastHash = null; - + function checkHash() { if (document.location.hash != lastHash) { lastHash = document.location.hash; @@ -27,7 +28,7 @@ $('#document-list a').removeClass('active'); documentLink.addClass('active'); }; - + if ($('#document-detail').attr('data-hash') != lastHash) { $('#document-detail') .attr('data-hash', lastHash) @@ -36,20 +37,20 @@ } else if (!document.location.hash) { $('#document-list a:first').click(); } - + setTimeout(checkHash, 500); }; - + checkHash(); }); </script> {% endblock extrahead %} {% block body %} - <h1>MateriaÅy pomocnicze dla nauczycieli</h1> + <h1>{% trans "Hand-outs for teachers" %}</h1> <form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form"> - <p>{{ form.q }} <input type="submit" value="Szukaj" /> <strong>lub</strong> <a href="{% url main_page %}">wrÃ³Ä do strony gÅównej</a></p> + <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p> </form> - + <div id="document-list"> <ol> {% for object in object_list %} @@ -60,4 +61,3 @@ <div id="document-detail"> </div> {% endblock %} - \ No newline at end of file