superdesk/superdesk-client-core

View on GitHub
scripts/apps/archive/views/fetched-desks.html

Summary

Maintainability
Test Coverage
<dl ng-if="desks.length">
    <dt translate>fetched in</dt>
    <dd ng-repeat="desk in desks track by desk.desk._id">
        <a ng-if="$first && desk.isUserDeskMember" ng-click="selectFetched(desk)">
            {{desk.desk.name.substring(0,10)}}{{desk.desk.name.length>10 ? '...' : ''}}  ({{desk.count}})</a>
        <span ng-if="$first && !desk.isUserDeskMember" class="container">
            {{desk.desk.name.substring(0,10)}}{{desk.desk.name.length>10 ? '...' : ''}}  ({{desk.count}})
        </span>
        <dd ng-if="desks.length>1" class="dropdown dropdown--dropup more-actions" dropdown-append-to-body dropdown>
            <button class="dropdown__toggle" dropdown__toggle><i class="icon-dots"></i></button>
            <div class="dropdown__menu">
                <ul>
                    <li ng-repeat="desk in desks track by desk.desk._id">
                        <a ng-if="!$first" ng-click="selectFetched(desk)" ng-disabled="!desk.isUserDeskMember">
                            {{desk.desk.name}} ({{desk.count}})</a>
                    </li>
                </ul>
            </div>
        </dd>
    </dd>
</dl>