superdesk/superdesk-client-core

View on GitHub
scripts/apps/search/views/menu.html

Summary

Maintainability
Test Coverage
<div class="dropdown dropdown--dropright dropdown--hover highlights-dropdown" dropdown ng-controller="SearchMenuController as search">
    <a href="#/search" class="dropdown__toggle sd-sidebar-menu__btn"
        title="{{ :: 'Search' | translate }}"
        aria-label="{{ :: 'Search' | translate }}"
        sd-hotkey="ctrl+alt+f" sd-hotkey-options="{global: true}"
        ng-click="hideMonitoring(currentRoute.href === '/search', $event)"
    >
        <span class="sd-sidebar-menu__main-icon element-with-badge">
            <i class="big-icon--global-search"></i>
        
            <span
                ng-if="badges[item.id] != null"
                class="badge badge--highlight"
                
            >
                {{badges[item.id]}}
            </span>
        </span>

        <span class="sd-sidebar-menu__chevron_wrapper">
            <i class="sd-sidebar-menu__helper-icon big-icon--chevron-left"></i>
        </span>
    </a>
    <ul ng-if="search.providers.length > 1" class="dropdown__menu pull-left">
        <li ng-repeat="provider in search.providers track by provider._id">
            <button ng-click="search.loadSearchShortcut(provider)">
                {{ :: search.providerLabel(provider) }}
            </button>
        </li>
    </ul>
</div>