#138 Fixed section grouping issue (wrong loop level)

This commit is contained in:
drgomesp 2013-02-21 15:56:10 -03:00
parent fe96e262ec
commit 5d9accfdb5

View File

@ -2,15 +2,15 @@
{% block content %}
{% for section, sections in resources %}
{% if section != 'others' %}
<h1>{{ section }}</h1>
{% endif %}
{% for resource, methods in sections %}
<li class="resource">
<div class="heading">
{% if section == 'others' and resource == 'others' %}
<h2>{{ resource }}</h2>
{% endif %}
{% if section != 'others' %}
<h1>{{ section }}</h1>
{% endif %}
{% if resource != 'others' %}
<h2>{{ resource }}</h2>
{% endif %}