superdesk/superdesk-client-core

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

Summary

Maintainability
Test Coverage
<fieldset ng-if="context">
    <div class="superdeskRepos flex-grid flex-grid--boxed-small flex-grid--wrap-items flex-grid--small-2" ng-show="repo.search === 'local'">
        <button type="button" id="ingest-collection" class="toggle-button" ng-click="toggleRepo('ingest')" ng-class="{'toggle-button--active': repo.ingest}">{{:: 'Ingest' | translate}}</button>
        <button type="button" id="archive-collection" class="toggle-button" ng-click="toggleRepo('archive')" ng-class="{'toggle-button--active': repo.archive}">{{:: 'Production' | translate}}</button>
        <button type="button" id="published-collection" class="toggle-button" ng-click="toggleRepo('published')" ng-class="{'toggle-button--active': repo.published}">{{:: 'Published' | translate}}</button>
        <button type="button" id="archived-collection" class="toggle-button" ng-click="toggleRepo('archived')" ng-class="{'toggle-button--active': repo.archived}">{{:: 'Archived' | translate}}</button>
    </div>
</fieldset>