mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
24 lines
No EOL
1 KiB
Handlebars
24 lines
No EOL
1 KiB
Handlebars
<div
|
|
class="component dh-style card-preview-container {{#if (and (not this.disabled) (and this.compendium (not this.img)))}}selectable{{/if}} {{#if this.disabled}}disabled{{/if}}"
|
|
{{#if (not disabled)}}data-action="viewCompendium"{{/if}} data-compendium="{{this.compendium}}" data-path="{{this.path}}" data-limit="{{this.limit}}"
|
|
>
|
|
{{#if this.img}}
|
|
<div class="preview-selected-container">
|
|
<img class="preview-image-container" src="{{this.img}}" />
|
|
<span class="preview-text-container">
|
|
{{#if altPartialBlock}}
|
|
{{> @partial-block }}
|
|
{{else}}
|
|
{{this.name}}
|
|
{{/if}}
|
|
</span>
|
|
</div>
|
|
{{else}}
|
|
<div class="preview-empty-container">
|
|
<div class="preview-empty-inner-container">
|
|
<i class="preview-add-icon fa-solid fa-plus"></i>
|
|
<span class="preview-empty-subtext">{{> @partial-block }}</span>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div> |