blob: 0e32b23d7fb1abe0a386a9efd37ccf3e00b51469 (
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
37
38
|
<ul class="navbar" role="menu" aria-label="{{ 'CoreHome_MainNavigation'|translate }}">
<li ng-repeat="category in menuModel.menu"
class="menuTab"
role="menuitem"
ng-class="{'active': category.active}">
<a class="item" tabindex="5"
href=""
ng-click="loadCategory(category)">
<span class="menu-icon {{ category.icon ? category.icon : 'icon-arrow-right' }}"></span>{{ category.name }}
<span class="hidden">
{{ 'CoreHome_Menu'|translate }}
</span>
</a>
<ul role="menu">
<li ng-repeat="subcategory in category.subcategories"
role="menuitem"
ng-class="{'active': subcategory.active}">
<div ng-if="subcategory.isGroup" piwik-menudropdown show-search="true" menu-title="{{ subcategory.name|escape }}">
<a class="item" tabindex="5"
ng-repeat="subcat in subcategory.subcategories"
title="{{ subcat.tooltip }}"
ng-class="{'active': subcat.active}"
ng-href="#?{{ makeUrl(category,subcat) }}"
ng-click='loadSubcategory(category, subcat)'>
{{ subcat.name }}
</a>
</div>
<a ng-if="!subcategory.isGroup"
ng-href="#?{{ makeUrl(category,subcategory) }}"
class="item"
ng-click='loadSubcategory(category, subcategory)'>
{{ subcategory.name }}
</a>
</li>
</ul>
</li>
</ul>
|