superdesk/superdesk-client-core

View on GitHub
scripts/apps/archive/views/item-crops.html

Summary

Maintainability
Test Coverage
<div sd-toggle-box data-title="{{:: 'Show/hide crops' | translate}}" data-open="true" data-style="circle toggle-box--marg-b10" ng-show="showCrops()">
    <div class="cropItems">
        <div ng-repeat="crop in crop_sizes track by crop.name" ng-if="item.renditions[crop.name]" class="cropItems__item">
            <div class="rendition cropItems__item-rendition"
                sd-item-rendition
                data-item="item"
                data-rendition="{{ :: crop.name }}">
            </div>
            <span class="cropItems__item-label">{{ :: crop.name | translate }}</span>
        </div>
    </div>
</div>