Revision 2a32f17b cloudcmsfaq/templates/cloudcmsfaq/archive.html

b/cloudcmsfaq/templates/cloudcmsfaq/archive.html
1
{% load applicationcontent_tags pagination_tags i18n %}
1
{% load applicationcontent_tags pagination_tags i18n cloudcms_tags %}
2 2

  
3 3
<div class="faq">
4
    {% for category in categories %}
4
    {% for service in services %}
5 5
    <div class="faq-category">
6
        <h2>{{ category.translation.title|upper }}</h2>
6
        <h2>{{ service.translation.title|upper }}</h2>
7 7
        <ul>
8
            {% for q in category.faqs.active %}
9
            <li {% if q == question %}class="current"{% endif %}>
10
                <a href="{{ q.get_absolute_url }}">{{ q.title }}</a>
11
            </li>
8
            <li class="category">
9
            {% for category, questions in service|get_service_faqs %}
10
              <h3>{{ category.translation.title|upper }}</h3>
11
              <ul>
12
                {% for q in questions %}
13
                  <li {% if q == question %}class="current"{% endif %}>
14
                    <a href="{{ q.get_absolute_url }}">{{ q.title }}</a>
15
                  </li>
16
                  {% endfor %}
17
                  <br />
18
              </ul>
12 19
            {% endfor %}
20
            </li>
13 21
        </ul>
14 22
    </div>
15 23
    {% endfor %}

Also available in: Unified diff