From 5d9accfdb56a0bd52d7d7f3703379cb530a42326 Mon Sep 17 00:00:00 2001 From: drgomesp Date: Thu, 21 Feb 2013 15:56:10 -0300 Subject: [PATCH] #138 Fixed section grouping issue (wrong loop level) --- Resources/views/resources.html.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Resources/views/resources.html.twig b/Resources/views/resources.html.twig index ffe1c2b..36b39bd 100644 --- a/Resources/views/resources.html.twig +++ b/Resources/views/resources.html.twig @@ -2,15 +2,15 @@ {% block content %} {% for section, sections in resources %} + {% if section != 'others' %} +

{{ section }}

+ {% endif %} {% for resource, methods in sections %}
  • {% if section == 'others' and resource == 'others' %}

    {{ resource }}

    {% endif %} - {% if section != 'others' %} -

    {{ section }}

    - {% endif %} {% if resource != 'others' %}

    {{ resource }}

    {% endif %}