<section class="site-preview-shell place-preview-shell npc-dossier-shell location-dossier-shell" style="{{backgroundStyle}}">
    <div class="site-preview-shade"></div>
    {{#if missing}}
    <div class="npc-dossier-missing">This location could not be found.</div>
    {{else}}
    <div class="site-preview-stage npc-dossier-stage">
        <aside class="site-preview-dossier place-preview-dossier npc-dossier-profile" data-connections-drop-surface>
            {{> "modules/augur-nexus/templates/campaign-entities/location-profile-panel.hbs" profile=location.profile}}
            {{#if dossier.isProfileTab}}
            {{#if hasProfileActions}}
            <footer class="npc-dossier-journal-footer location-dossier-profile-footer">
                {{#each locationViews}}
                <button type="button" class="npc-dossier-primary" data-action="openRegisteredLocationView" data-location-view-id="{{id}}">
                    <i class="{{icon}}"></i><span>{{label}}</span>
                </button>
                {{/each}}
                {{#if sceneControl.canOpen}}
                <button type="button" class="npc-dossier-secondary" data-action="openLocationScene" title="{{sceneControl.title}}">
                    <i class="{{sceneControl.icon}}"></i><span>{{sceneControl.label}}</span>
                </button>
                {{/if}}
            </footer>
            {{/if}}
            {{/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 location.</div>
                    {{/if}}
                </div>
                {{#if isGM}}
                <footer class="npc-dossier-journal-footer">
                    <button type="button" class="npc-dossier-secondary" data-action="{{#if journal.hasPage}}openLocationJournal{{else}}createLocationJournal{{/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.isChronicleTab}}
            <section class="entity-dossier-chronicle">{{{chronicleHtml}}}</section>
            {{/if}}
        </aside>
        <section class="site-preview-cover npc-dossier-connections" aria-label="Location connections">
            {{> "modules/augur-nexus/templates/connections/connections-board.hbs" connections.board}}
            {{#if isGM}}
            <button type="button" class="location-dossier-new-button" data-action="openLocationCreateMenu" title="Create something at this Location">
                <span>New</span><i class="fas fa-plus"></i>
            </button>
            {{/if}}
        </section>
    </div>
    {{/if}}
</section>
