{% extends "sopds_main.html" %}
{% load staticfiles %}
{% load i18n %}

{% block body %}
{% autoescape on %}
<table>
{%  for g in items %}
<tr>
	<td>
	{% if not parent_id %}
	   <a href="{% url "web:genre" %}?section={{g.section_id}}">{{ g.section }}</a>
	{% else %}
	   <a href="{% url "web:searchbooks" %}?searchtype=g&searchterms={{g.id}}">{{ g.subsection }}</a>
	{% endif %}
	<span style="font-size:80%">{% blocktrans with g_num_book=g.num_book %}Total: {{ g_num_book }} books.{% endblocktrans %}</span>
	</td>
</tr>		
{% endfor %}
</table>
{% endautoescape %}

{% endblock %}  {# body #}