superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring/versioning/views/versioning.html

Summary

Maintainability
Test Coverage
<ul class="nav nav-tabs">
    <li ng-class="{active: tab === 'versions' || !tab}">
        <button ng-click="tab = 'versions'" translate>Versions</button>
    </li>
    <li ng-class="{active: tab === 'history'}">
        <button ng-click="tab = 'history'" translate>Item history</button>
    </li>
</ul>
<div class="content">
    <div ng-if="tab === 'versions' || !tab" sd-versioning-version></div>
    <div ng-if="tab === 'history'" sd-versioning-history data-item="item"></div>
</div>