summaryrefslogtreecommitdiffstats
path: root/templates/html/htmlmemberindex.tpl
blob: 7de92b90aa2c878a06c2bda41ded94fa82983c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{# input: list #}
{% set singleList=(list|length<=maxItemsForFlatList) or (list|length>maxItemsForMultiPageList) %}
{% if singleList %}
<ul>
{% endif %}
{% with index=list|alphaIndex:'name' %}
  {% for section in index %}
    {% if not singleList or letter=='' or section.letter==letter %}
      {% if not singleList %}
      <a class="anchor" id="index_{{ section.label }}"></a><h3>- {{ section.letter }} -</h3>
      <ul>
      {% endif %}
      {% for nameList in section.items|groupBy:'name' %}
          {% for item in nameList|listsort:'{{item.file.name}}' %}
            {% if forloop.first %}
              <li>{{ item.name }}{% if (item.isFunction or item.isSignal or item.isSlot) and not item.isObjCMethod %}(){% endif %} :
            {% endif %}
        {% spaceless %}
            {% with obj=item scope=item|get:scope text=scope.name %}
               {% include 'htmlobjlink.tpl' %}
            {% endwith %}
        {% endspaceless %}
            {% if not forloop.last %},
            {% else %}</li>
            {% endif %}
          {% endfor %}
      {% endfor %}
      {% if not singleList %}
      </ul>
      {% endif %}
    {% endif %}
  {% endfor %}
{% endwith %}
{% if singleList %}
</ul>
{% endif %}