<div class="gm-screen-grid-cell"
     id="gm-screen-{{gridId}}-cell-{{@index}}"
     {{#if this.entityUuid }}
     data-entity-uuid="{{this.entityUuid }}"
     {{/if }}
     {{#if this.isDndNpc }}
     data-dnd-npc="true"
     {{/if }}
     {{#if this.isDndNpcStatBlock }}
     data-dnd-npc-stat-block="true"
     {{/if }}
     {{#if this.entryId }}
     data-entry-id="{{this.entryId }}"
     {{/if }}
     {{#if this.imagePath }}
     data-image-path="{{this.imagePath }}"
     {{/if }}
     style="{{#if this.x }}grid-column: {{this.x }};
            {{/if }} {{#if this.y }}grid-row:{{this.y }};
            {{/if }} {{#if this.spanRows }}grid-row-end: span {{this.spanRows }};
            {{/if }} {{#if this.spanCols }}grid-column-end: span {{this.spanCols }};
            {{/if }} --column-span-count: {{#if this.spanCols }}{{this.spanCols }}{{else }}1{{/if }}">
<div class="gm-screen-grid-cell-header">
  {{#if @root/isGM }}
    <a data-action="configureCell"
       data-tooltip="GMSCR.gmScreen.ConfigureCell"><i class="fas fa-cog"></i></a>
    {{#if @root/isGM }}
      {{#unless this.entityUuid}}
      <a data-action="chooseImage" data-tooltip="GMSCR.gmScreen.ChooseImage"><i class="fas fa-file-image"></i></a>
    {{/unless}}
  {{/if}}
  {{#if this.entityUuid }}
    <a data-action="clearCell" data-tooltip="GMSCR.gmScreen.ClearCell">
      <i class="fas fa-times-circle"></i>
    </a>
  {{/if}}
{{/if}}
<h5 class="gm-screen-grid-cell-title">{{!-- Contents injected in GmScreenApplication.activateListeners --}}</h5>
{{#if this.entityUuid }}
  {{#if this.isDndNpc }}
  <a type="checkbox"
     {{#if this.isDndNpcStatBlock }}
     data-tooltip="GMSCR.gmScreen.ShowNPCNormal"
     {{else }}
     data-tooltip="GMSCR.gmScreen.ShowNPCStatBlock"
     {{/if }}
     data-action="statBlock">
    {{#if this.isDndNpcStatBlock }}
      <i class="fas fa-shield"></i>{{else}}<i class="fas fa-shield-halved"></i>{{/if}}</a>
  {{/if}}
  {{#if this.type }}
    {{#if (or (eq this.type 'JournalEntry') (eq this.type 'JournalEntryPage')) }}
      <a data-link
         data-tooltip="GMSCR.gmScreen.OpenFull"
         data-type="{{this.type}}"
         data-uuid="{{this.entityUuid}}"
         data-id="{{this.entryId}}"><i class="fas fa-book-open"></i></a>
    {{else }}
      <a data-action="open" data-tooltip="GMSCR.gmScreen.OpenFull">
        {{#GMSCR-switch this.type}}
        {{#GMSCR-case 'RollTable'}}<i class="fas fa-th-list"></i>{{/GMSCR-case}}
        {{#GMSCR-case 'Actor'}}<i class="fas fa-users"></i>{{/GMSCR-case}}
        {{#GMSCR-case 'Item'}}<i class="fas fa-suitcase"></i>{{/GMSCR-case}}
        {{#GMSCR-case 'Image'}}<i class="fas fa-file-image"></i>{{/GMSCR-case}}
      {{/GMSCR-switch}}
    </a>
  {{/if}}
{{else}}
  <a data-action="open" data-tooltip="GMSCR.gmScreen.OpenFull"><i class="fas fa-edit"></i></a>
{{/if}}
{{/if}}
</div>
<div class="gm-screen-grid-cell-content-wrapper">
  <div class="gm-screen-grid-cell-content {{#unless (and this.entityUuid (or (eq this.type 'JournalEntry') (eq this.type 'RollTable')))}}app window-app{{/unless}}">
    {{!-- Contents injected in GmScreenApplication.activateListeners --}}
    {{#if @root/isGM }}
      {{#unless this.entityUuid}}
      <div class="gm-screen-grid-cell-hint">
        <h6>{{localize 'GMSCR.gmScreen.EmptyCellHint'}}</h6>
      </div>
    {{/unless}}
  {{/if}}
  {{#if this.imagePath }}
    <img src="{{this.imagePath}}" alt="{{this.imagePath}}">
  </img>
{{/if }}
</div>
</div>
</div>
