From: Lukasz Anwajler <lukasz@anwajler.com> Date: Mon, 20 Sep 2010 22:54:28 +0000 (-0500) Subject: Ticket 775 - Table of Contens (books listing) X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/5ea4ebb6aed109f6c6fff2d98f667abbddb0c4a0 Ticket 775 - Table of Contens (books listing) --- diff --git a/wolnelektury/static/css/master.css b/wolnelektury/static/css/master.css index e9c42dce9..263a4face 100644 --- a/wolnelektury/static/css/master.css +++ b/wolnelektury/static/css/master.css @@ -785,7 +785,7 @@ div.shown-tags p, div.all-tags p { /* = Alphabetic book list = */ /* ======================== */ #book-list-nav { - position: fixed; + position: absolute; right: 50px; width: 200px; border: 2px #325F70 solid; @@ -816,6 +816,15 @@ div.shown-tags p, div.all-tags p { color: black; } +#book-list-up { + position: fixed; + bottom: 50px; + right: 50px; + border: 2px #325F70 solid; + padding: 10px; + background-color: white; +} + #top-message { background-color: #2F4110; color: #FFF; diff --git a/wolnelektury/templates/catalogue/book_list.html b/wolnelektury/templates/catalogue/book_list.html index f385a19f8..be7045b88 100644 --- a/wolnelektury/templates/catalogue/book_list.html +++ b/wolnelektury/templates/catalogue/book_list.html @@ -11,6 +11,7 @@ <form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form"> <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> + <a name="top"> <div id="book-list-nav"> {% trans "Table of Content" %} {% for index, authors in books_nav.items %} @@ -36,4 +37,7 @@ {% endif %} {% endfor %} </div> + <div id="book-list-up"> + <p><a href="#top">{% trans "â top â" %}</a></p> + </div> {% endblock %}