<section class="site-preview-shell place-preview-shell npc-dossier-shell ship-dossier-shell {{#if dossier.isCompact}}is-compact{{/if}}" style="{{backgroundStyle}}">
    <div class="site-preview-shade"></div>
    {{#if missing}}
    <div class="npc-dossier-missing">This ship could not be found.</div>
    {{else}}
    <div class="ship-domain-stage {{#if dossier.isCompact}}is-compact{{/if}}">
        {{#unless dossier.isCompact}}
        {{> "modules/augur-nexus/templates/campaign-entities/ship-domain-overview.hbs" domain=domain identity=identity assignment=assignment isGM=isGM}}
        {{/unless}}
        <aside class="site-preview-dossier place-preview-dossier npc-dossier-profile ship-domain-dossier" data-connections-drop-surface>
            {{> "modules/augur-nexus/templates/campaign-entities/ship-profile-panel.hbs" profile=ship.profile domain=domain}}
            {{#if dossier.isProfileTab}}{{#unless dossier.isCompact}}{{#if assignment.length}}
            <section class="ship-domain-sidebar-assignment">
                <h3 class="npc-profile-section-heading is-thread"><span><i class="fas fa-satellite-dish"></i> Current Assignment</span>{{#if canRerollCurrentAssignment}}<button type="button" class="faction-current-thread-reroll" data-action="rerollShipCurrentAssignment" title="Reroll Current Assignment" aria-label="Reroll Current Assignment"><i class="fas fa-dice"></i></button>{{/if}}</h3>
                <div>{{#each assignment}}<article><em>{{label}}</em><strong>{{value}}</strong></article>{{/each}}</div>
            </section>
            {{/if}}{{/unless}}{{/if}}
            {{#if dossier.isJournalTab}}
            <section class="npc-dossier-section npc-dossier-journal">
                <div class="npc-dossier-journal-body">
                {{#if journal.hasPage}}
                {{#if journal.hasContent}}<div class="npc-dossier-journal-content">{{{journal.content}}}</div>{{else}}<div class="npc-dossier-empty">This journal is blank.</div>{{/if}}
                {{else}}<div class="npc-dossier-empty">No journal has been created for this ship.</div>{{/if}}
                </div>
                {{#if isGM}}<footer class="npc-dossier-journal-footer"><button type="button" class="npc-dossier-secondary" data-action="{{#if journal.hasPage}}openShipJournal{{else}}createShipJournal{{/if}}"><i class="fas {{#if journal.hasPage}}fa-book-open{{else}}fa-book-medical{{/if}}"></i><span>{{#if journal.hasPage}}Edit Journal{{else}}Create Journal{{/if}}</span></button></footer>{{/if}}
            </section>
            {{/if}}
            {{#if dossier.isConnectionsTab}}
            <section class="ship-domain-connections" aria-label="Ship connections">{{> "modules/augur-nexus/templates/connections/connections-board.hbs" connections.board}}</section>
            {{/if}}
        </aside>
    </div>
    {{/if}}
</section>
