blob: 981bc09d035a668bf31e75bfc2fc058a4b609258 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<div><ul class="navbar hide-on-med-and-down" 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>
<ul id="mobile-left-menu" class="side-nav hide-on-large-only">
<li class="no-padding" ng-repeat="category in menuModel.menu">
<ul class="collapsible collapsible-accordion" piwik-side-nav="nav .activateLeftMenu">
<li>
<a class="collapsible-header">{{ category.name }}<i class="{{ category.icon ? category.icon : 'icon-arrow-bottom' }}"></i></a>
<div class="collapsible-body">
<ul>
<li ng-repeat="subcategory in category.subcategories">
<a ng-if="subcategory.isGroup"
ng-repeat="subcat in subcategory.subcategories"
ng-click='loadSubcategory(category, subcat)'
ng-href="#?{{ makeUrl(category,subcat) }}">{{ subcat.name }}</a>
<a ng-if="!subcategory.isGroup"
ng-click='loadSubcategory(category, subcategory)'
ng-href="#?{{ makeUrl(category,subcategory) }}">{{ subcategory.name }}</a>
</li>
</ul>
</div>
</li>
</ul>
</li>
</ul>
</div>
|