mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
* Add ability to toggle between list and card views * set the list display as a user flag * Fixed domainCard cardlist rendering --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
53 lines
No EOL
2.9 KiB
Handlebars
53 lines
No EOL
2.9 KiB
Handlebars
<fieldset class="{{#if isGlassy}}glassy{{/if}}">
|
|
<legend>{{title}}</legend>
|
|
<ul class="items-list">
|
|
{{#unless (eq cardView 'card') }}
|
|
{{#each document.items as |item|}}
|
|
{{#if (eq item.type ../type)}}
|
|
{{#unless (or (eq ../type 'ancestry') (eq item.type 'class') (eq item.type 'subclass') (and (eq ../type 'domainCard') (or (and item.system.inVault (not ../isVault)) (and (not item.system.inVault) ../isVault))))}}
|
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=item type=../type}}
|
|
{{/unless}}
|
|
{{/if}}
|
|
{{/each}}
|
|
{{#each document.system.ancestry.system.actions as |action|}}
|
|
{{#if (or (eq ../type 'ancestry'))}}
|
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=action type=../type}}
|
|
{{/if}}
|
|
{{/each}}
|
|
{{#each document.system.ancestry.system.actions as |action|}}
|
|
{{#if (or (eq ../type 'ancestry'))}}
|
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=action type=../type}}
|
|
{{/if}}
|
|
{{/each}}
|
|
{{#each document.system.class.value.system.classFeatures as |classFeature|}}
|
|
{{#if (or (eq ../type 'class'))}}
|
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=classFeature type=../type}}
|
|
{{/if}}
|
|
{{/each}}
|
|
{{#each document.system.class.value.system.classFeatures as |classFeature|}}
|
|
{{#if (or (eq ../type 'class'))}}
|
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=classFeature type=../type}}
|
|
{{/if}}
|
|
{{/each}}
|
|
{{#each document.appliedEffects as |effect|}}
|
|
{{#if (or (eq ../type 'effect'))}}
|
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=effect type=../type}}
|
|
{{/if}}
|
|
{{/each}}
|
|
{{/unless}}
|
|
|
|
</ul>
|
|
{{#if (and (eq cardView 'card') (eq type 'domainCard'))}}
|
|
<ul class="card-list">
|
|
{{#if isVault}}
|
|
{{#each document.system.domainCards.vault as |card|}}
|
|
{{> 'systems/daggerheart/templates/sheets/global/partials/domain-card-item.hbs' item=card type=../type}}
|
|
{{/each}}
|
|
{{else}}
|
|
{{#each document.system.domainCards.loadout as |card|}}
|
|
{{> 'systems/daggerheart/templates/sheets/global/partials/domain-card-item.hbs' item=card type=../type}}
|
|
{{/each}}
|
|
{{/if}}
|
|
</ul>
|
|
{{/if}}
|
|
</fieldset> |