1<!-- lists_categories.tt2 --> 2<h2><i class="fa fa-sitemap"></i> [%|loc%]Browse lists by categories[%END%]</h2> 3[% SET single_topic = "other" %] 4[% FOREACH topic = topics %] 5 [% IF topic.id && topic.id != "other" && topic.id != "topicsless" %] 6 [% SET single_topic = "" %] 7 [% LAST %] 8 [% ELSIF topic.sub %] 9 [% FOREACH subtopic = topic.sub %] 10 [% SET single_topic = "" %] 11 [% LAST %] 12 [% END %] 13 [% END %] 14[% END %] 15[% IF single_topic != "" %] 16 <ul class="mailing_lists_menu"> 17 <li> 18 <a class="heavyWork" href="[% 'lists' | url_rel %]"> 19 <strong>[%|loc%]List of lists[%END%]</strong> 20 </a> 21 </li> 22 </ul> 23[% ELSE %] 24 <ul class="mailing_lists_menu"> 25 [% SET topic_other = 0 %] 26 [% FOREACH topic = topics %] 27 [% IF topic.id == 'other' || topic.id == 'topicsless' %] 28 [% UNLESS topic_other %] 29 <li> 30 <a class="heavyWork" href="[% 'lists' | url_rel([topic.id]) %]"> 31 <strong>[% IF topic.current_title %][% topic.current_title %][% ELSE %][%|loc%]Others[%END%][% END %]</strong> 32 </a> 33 </li> 34 [% SET topic_other = 1 %] 35 [% END %] 36 [% ELSE %] 37 <li> 38 <a class="heavyWork" href="[% 'lists' | url_rel([topic.id]) %]"> 39 <strong>[% topic.current_title %]</strong> 40 </a> 41 </li> 42 [% END %] 43 44 [% IF topic.sub.size %] 45 <ul class="no_style"> 46 [% FOREACH subtopic = topic.sub %] 47 <li class="smaller"> 48 <a class="heavyWork" href="[% 'lists' | url_rel([topic.id,subtopic.key]) %]"> 49 [% subtopic.value.current_title %] 50 </a> 51 </li> 52 [% END %] 53 </ul> 54 [% END %] 55 [% IF topic.next %] 56 </ul> 57 <ul class="mailing_lists_menu"> 58 [% END %] 59 [% END %] 60 </ul> 61[% END %] 62<!-- end lists_categories.tt2 --> 63