superdesk/superdesk-client-core

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

Summary

Maintainability
Test Coverage
<div class="dropdown dropdown--dropright dropdown--hover highlights-dropdown" dropdown ng-controller="SearchMenuController as search">
    <a href="" class="dropdown__toggle sd-sidebar-menu__btn"
        title="{{ :: 'Search' | translate }}"
        aria-label="{{ :: 'Search' | translate }}"
        ng-click="hideMonitoring(currentRoute.href === '/search_providers', $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 > 0" 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>