-{% load i18n %}
-{% load tag_list from catalogue_tags %}
+{% load i18n static %}
<ul id="menu">
+ {% for category, name, hash in categories %}
<li class="hidden-box-wrapper menu">
- <a href="{% url catalogue %}#autorzy" class="hidden-box-trigger menu">
- <span class='mono'>{% trans "Authors" %}</span></a>
- <div class="hidden-box">{% if author %}{% tag_list author %}{% endif %}</div>
- </li>
- <li class="hidden-box-wrapper menu">
- <a href="{% url catalogue %}#gatunki" class="hidden-box-trigger menu">
- <span class='mono'>{% trans "Genres" %}</span></a>
- <div class="hidden-box">{% if genre %}{% tag_list genre %}{% endif %}</div>
- </li>
- <li class="hidden-box-wrapper menu">
- <a href="{% url catalogue %}#rodzaje" class="hidden-box-trigger menu">
- <span class='mono'>{% trans "Kinds" %}</span></a>
- <div class="hidden-box">{% if kind %}{% tag_list kind %}{% endif %}</div>
- </li>
- <li class="hidden-box-wrapper menu">
- <a href="{% url catalogue %}#epoki" class="hidden-box-trigger menu">
- <span class='mono'>{% trans "Epochs" %}</span></a>
- <div class="hidden-box">{% if epoch %}{% tag_list epoch %}{% endif %}</div>
- </li>
- <li class="hidden-box-wrapper menu">
- <a href="{% url catalogue %}#motywy" class="hidden-box-trigger menu">
- <span class='mono'>{% trans "Themes" %}</span></a>
- <div class="hidden-box">{% if theme %}{% tag_list theme %}{% endif %}</div>
+ <a href="{% url catalogue %}#{{ hash }}" class="hidden-box-trigger menu load-menu">
+ <span class='mono'>{{ name }}</span></a>
+ <div class="hidden-box" id="menu-{{ category }}">
+ <img src="{% static "img/indicator.gif" %}" alt="{% trans "Please wait…" %}" />
+ </div>
</li>
+ {% endfor %}
+
<li class="menu">
<a href="{% url book_list %}" class="menu">
<span class='mono'>{% trans "All books" %}</span></a>