superdesk/superdesk-client-core

View on GitHub
scripts/apps/search/views/repo-dropdown.html

Summary

Maintainability
Test Coverage
<div id="repo-dropdown" class="dropdown" dropdown ng-controller="SearchMenuController as search">
    <button class="dropdown__toggle navbtn navbtn--text-only" dropdown__toggle>
        {{ search.providerLabel(search.activeProvider) || 'Superdesk' }}
        <span class="dropdown__caret"></span>
    </button>
    <ul class="dropdown__menu">
        <li ng-repeat="provider in search.providers track by provider._id"  ng-class="{active: search.isActive(provider)}">
            <button ng-click="search.loadSearchShortcut(provider)">{{ :: search.providerLabel(provider) }}</button>
        </li>
    </ul>
</div>