aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/app/scripts/directives/layout/top-nav/top-nav.html
blob: 40b1e86d908200c23bfc696c901df26c3bccd806 (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
<nav class="top-nav">

    <div class="asdc-app-title-wrapper">
        <a class="asdc-app-title">SDC</a> <!-- data-ui-sref="dashboard" -->
        <div class="asdc-version"> v.{{version}}</div>
    </div>

    <ul class="top-menu" data-ng-show="!menuModel">
        <!-- no hierarchy & dropdowns mode -->
        <li data-ng-repeat="item in topLvlMenu.menuItems"
            data-ng-class="{'selected': $index == topLvlMenu.selectedIndex}">
            <a data-ng-click="menuItemClick(topLvlMenu, item)"
               data-tests-id="main-menu-button-{{item.text | lowercase}}">{{item.text}}</a>
        </li>
    </ul>

    <ul class="top-menu" data-ng-show="menuModel">
        <!-- with hierarchy & dropdowns mode -->
        <li data-ng-repeat-start="groupItem in menuModel"
            data-ng-class="{'selected': $last }">
            <a data-ng-click="menuItemClick(groupItem, groupItem.menuItems[groupItem.selectedIndex])"
               data-tests-id="breadcrumbs-button-{{$index}}">
                {{groupItem.menuItems[groupItem.selectedIndex].text}}
            </a>
        </li>
        <li data-ng-repeat-end="" class="triangle-dropdown"
            data-ng-class="{'item-click': groupItem.itemClick}" data-ng-mouseover="groupItem.itemClick = true">
            <div class="triangle"><span class="sprite-new arrow-right"></span></div>
            <perfect-scrollbar scroll-y-margin-offset="15" include-padding="true">
                <ul>
                    <li data-ng-repeat="ddItem in groupItem.menuItems"
                        data-ng-click="menuItemClick(groupItem, ddItem)"
                        data-ng-class="{'selected': $index == groupItem.selectedIndex, 'disabled': ddItem.isDisabled}"
                        data-tests-id="sub-menu-button-{{ddItem.text | lowercase}}">
                        <span sdc-smart-tooltip="">{{ddItem.text}}</span>
                    </li>
                </ul>
            </perfect-scrollbar>
        </li>
    </ul>

    <div class="top-search" data-ng-hide="hideSearch === true">
        <input type="text"
               class="search-text"
               placeholder="Search"
               data-ng-model="searchBind"
               data-tests-id="main-menu-input-search"
               ng-model-options="{ debounce: 500 }" />
        <span class="w-sdc-search-icon magnification"></span>
    </div>

    <div class="notification-icon"  data-ng-disabled= "progress > 0" data-ng-class="{'disabled' : progress > 0}" data-ng-if="user.role === 'DESIGNER' && notificationIconCallback" data-ng-click="notificationIconCallback()" tooltips tooltip-side="left" tooltip-content="Vendor Software Product Repository" data-tests-id="repository-icon"></div>

</nav>