54 lines
1.9 KiB
Handlebars
54 lines
1.9 KiB
Handlebars
{{!--
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
SPDX-License-Identifier: MIT
|
|
--}}
|
|
|
|
{{!--
|
|
!-- Render an item list header row.
|
|
!-- If the partial is called with a partial block, the partial block
|
|
!-- content is inserted before the description heading.
|
|
!-- @param isEquipable: A flag to enable the equipped column.
|
|
!-- @param hasQuantity: A flag to enable the quantity column.
|
|
!-- @param hideDescription: A flag to disable the description column.
|
|
!-- @param type: The type of the items in this table.
|
|
!-- @param @partial-block: Custom column headers can be passed using the partial block.
|
|
--}}
|
|
<li class="ds4-embedded-document-list__row ds4-embedded-document-list__row--header" data-type={{type}}>
|
|
{{!-- equipped --}}
|
|
{{#if isEquipable}}
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="data.equipped"
|
|
title="{{localize 'DS4.SortByItemEquipped'}}">
|
|
{{localize 'DS4.ItemEquippedAbbr'}}</div>
|
|
{{/if}}
|
|
|
|
{{!-- image --}}
|
|
<div></div>
|
|
|
|
{{!-- amount --}}
|
|
{{#if hasQuantity}}
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="data.quantity"
|
|
title="{{localize 'DS4.SortByQuantity'}}">#</div>
|
|
{{/if}}
|
|
|
|
{{!-- name --}}
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="name"
|
|
title="{{localize 'DS4.SortByItemName'}}">{{localize 'DS4.ItemName'}}
|
|
</div>
|
|
|
|
{{!-- item type specifics --}}
|
|
{{#if @partial-block }}
|
|
{{> @partial-block }}
|
|
{{/if}}
|
|
|
|
{{!-- description --}}
|
|
{{#unless hideDescription}}
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="data.description"
|
|
title="{{localize 'DS4.SortByDescription'}}">{{localize
|
|
'DS4.Description'}}</div>
|
|
{{/unless}}
|
|
|
|
{{!-- control buttons placeholder --}}
|
|
<div></div>
|
|
</li>
|