X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e26eab6acc241c451e02f229fe99402675c99f81..f82fa14e5f5b02994272fc0b588e557d5be6f2a4:/src/wolnelektury/templates/superbase.html diff --git a/src/wolnelektury/templates/superbase.html b/src/wolnelektury/templates/superbase.html index af9df973a..d3abd31f2 100644 --- a/src/wolnelektury/templates/superbase.html +++ b/src/wolnelektury/templates/superbase.html @@ -10,13 +10,12 @@ - - - - - - + + + + + + {% block ogextra %}{% endblock %} @@ -109,13 +108,23 @@ </ul> - <ul id="main-menu"> - <li><a href="{% url 'book_list' %}">{% trans "Literature" %}</a></li> - <li><a href="{% url 'theme_catalogue' %}">{% trans "Themes" %}</a></li> - <li><a href="{% url 'audiobook_list' %}">{% trans "Audiobooks" %}</a></li> - <li><a href="{% url 'gallery' %}">{% trans "Gallery" %}</a></li> - <li><a href="{% url 'catalogue' %}">Wszystkie utwory</a></li> - </ul> + <ul id="main-menu"> + <li{% if active_menu_item == 'books' %} class="active"{% endif %}> + <a href="{% url 'book_list' %}">{% trans "Literature" %}</a> + </li> + <li{% if active_menu_item == 'theme' %} class="active"{% endif %}> + <a href="{% url 'theme_catalogue' %}">{% trans "Themes" %}</a> + </li> + <li{% if active_menu_item == 'audiobooks' %} class="active"{% endif %}> + <a href="{% url 'audiobook_list' %}">{% trans "Audiobooks" %}</a> + </li> + <li{% if active_menu_item == 'gallery' %} class="active"{% endif %}> + <a href="{% url 'gallery' %}">{% trans "Gallery" %}</a> + </li> + <li{% if active_menu_item == 'all_works' %} class="active"{% endif %}> + <a href="{% url 'catalogue' %}">{% trans "All works" %}</a> + </li> + </ul> </nav>