superdesk/superdesk-client-core

View on GitHub
scripts/core/menu/views/superdesk-view.html

Summary

Maintainability
Test Coverage

<div ng-if="!loading"> <!-- variable managed in scripts/core/loading.ts -->
    <!--
        Render top menu only after a user is logged in.
        Otherwise, the extensions will initialize too soon and will be unable to access HTTP API.

        Ideally, the entire application except login page should only be rendered when a user is logged in.
        It can't be done yet because password reset page stops working when moving .main-container divs here.
        There may be other issues too.
    -->

    <div sd-menu-wrapper></div>
    <div sd-notifications></div>
    <sd-system-messages></sd-system-messages>
</div>

<div class="loading" ng-if="loading"></div>

<div
    id="main-container"
    ng-class="superdesk.flags"
    ng-if="renderMonitoring && superdesk.flags.workspace === true"
>
    <div id="workspace-container" ng-view sd-splitter-widget></div>
    <div id="authoring-container" ng-show="superdesk.flags.authoring" ng-if="superdesk.flags.workspace" sd-authoring-container></div>
    <div id="superdesk-workqueue" ng-if="superdesk.flags.workspace === true && superdesk.flags.workqueue === true" sd-workqueue></div>

    <div ng-if="itemsForExport != null" sd-export></div>
</div>

<div id="main-container" ng-class="superdesk.flags" ng-if="!renderMonitoring">
    <div id="authoring-container" sd-authoring-container></div>
</div>

<div id="main-container" ng-class="superdesk.flags" ng-if="renderMonitoring && superdesk.flags.workspace === false" ng-view></div>

<div id="react-placeholder"></div>
<div id="react-backdrop"></div>

<div sd-activity-modal></div>
<div sd-login-modal></div>
<div sd-activity-chooser></div>
<div sd-phone-home-modal></div>

<div sd-item-globalsearch data-repo="repo" data-context="context" class="pull-left"></div>

<div sd-keyboard-modal></div>

<div class="hard-error" ng-if="serverStatus">
    <div class="alert alert-error" translate>Superdesk is experiencing network connection issues:/</div>
</div>