superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring/packages/views/packages-widget.html

Summary

Maintainability
Test Coverage
<div ng-controller="PackagesWidgetCtrl" class="widget-content__main">
    <div class="packages-content sd-padding-t--2">
        <ul class="boxed-list ">
            <li ng-repeat="pitem in contentItems"
                ng-if="pitem._id !== item._id"
                class="boxed-list__item boxed-list__item--comfortable">
                <div class="boxed-list__item-media">
                    <i class="icon-composite icon--2x"></i>
                </div>
                <div class="boxed-list__item-content">
                    <span class="sd-text__date-time sd-text__date-time--small"> {{ pitem.versioncreated}}</span>
                    <span class="sd-text__strong" ng-show="pitem.headline || pitem.slugline" title="{{ pitem.headline || pitem.slugline}}">
                        {{ pitem.headline || pitem.slugline}}
                    </span>
                    <span class="sd-text__strong-s" ng-hide="pitem.headline || pitem.slugline" translate>
                        Blank headline received
                    </span>
                </div>
                <div class="boxed-list__slide-in-actions" ng-show="pitem.headline || pitem.slugline">
                    <button class="icn-btn" ng-click="openPackage(pitem)"><i class="icon-pencil"></i></button>
                </div>
            </li>
        </ul>
    </div>
</div>