<div class="headlineRow headlineList splatFont combat-melee-itemlist">
    <div class="width-namebox">{{localize "wod.labels.combat.melee"}}</div>    
    <div class="width-smallbox">{{localize 'wod.combat.weapon.attr'}}</div>
    <div class="width-abilitybox">{{localize 'wod.combat.weapon.ability'}}</div>
    <div class="width-valuebox">{{localize 'wod.combat.weapon.acc'}}</div>
    <div class="width-valuebox">{{localize 'wod.combat.weapon.diff'}}</div>
    <div class="width-smallbox">{{localize 'wod.combat.weapon.damage'}}</div>
    <div class="width-valuebox">{{localize 'wod.combat.weapon.conceal.conceal'}}</div>
    <div class="width-mediumbox">{{localize 'wod.combat.weapon.grip'}}</div>    
</div>

<div>

    {{#each actor.system.listdata.combat.meleeWeapons as |item id|}}

        <div class="item-row-area combat-melee-itemlist">
            <div class="dragrow headlineNormal combat-melee-itemlist" data-itemid="{{item._id}}">
                <div class="width-iconbox draggable"><i class="icon fa-solid fa-grip-vertical"></i></div>

                {{#if item.system.attack.isrollable}}
                    <div class="width-namebox {{#if item.system.attack.isrollable}}vrollable{{/if}}" 
                        data-type="{{../config.sheettype.mortal}}"
                        data-object="Melee"
                        data-rollitem="true" 
                        data-itemid="{{item._id}}"
                        title="{{item.name}}">            
                        {{shorten item.name 18}}
                    </div>
                {{else}}
                    {{#if item.system.damage.isrollable}}
                        <div class="width-namebox {{#if item.system.damage.isrollable}}vrollable{{/if}}" 
                            data-type="{{../config.sheettype.mortal}}"
                            data-object="Damage"
                            data-rollitem="true" 
                            data-itemid="{{item._id}}"
                            title="{{item.name}}">
                            {{shorten item.name 18}}
                        </div>
                    {{else}}
                        <div class="weapon-rolliconbox-empty">&nbsp;</div>
                        <div class="combat-largeBox" title="{{item.name}}">{{shorten item.name 18}}&nbsp;</div>
                    {{/if}}
                {{/if}}

                <div class="width-smallbox">{{shorten (localize (getAttributes item.system.attack.attribute)) 10}}&nbsp;</div>
                <div class="width-abilitybox">

                    {{#if (eq item.system.attack.ability "custom")}}
                        {{shorten (getSecondaryAbility item.system.attack.ability ../actor item.system.attack.secondaryabilityid) 10}}
                    {{else}}
                        {{shorten (localize (getAbility item.system.attack.ability ../actor)) 10}}
                    {{/if}}

                </div>
                <div class="width-valuebox">{{item.system.attack.accuracy}}</div>
                <div class="width-valuebox">

                    {{#if (eq item.system.difficulty "-1")}}
                        {{localize "wod.labels.varies"}}
                    {{else}}
                        {{item.system.difficulty}}
                    {{/if}}

                </div>
                <div class="width-smallbox">

                    {{#if item.system.damage.isrollable}}
                        {{captilizeFirst (convertDamageCode item.system.damage.attribute item.system.damage.bonus item.system.damage.type)}}
                    {{else}}
                        &nbsp;
                    {{/if}}

                </div>
                <div class="width-valuebox" title="{{translateConceal item.system.conceal actor.system.settings.era true}}">{{translateConceal item.system.conceal actor.system.settings.era false}}</div>
                <div class="width-valuebox">

                    {{#if item.system.istwohanded}}
                        <img class="rowicons" src="systems/worldofdarkness/assets/img/items/weapon_twohand.svg" title="{{localize 'wod.combat.weapon.twohanded'}}">
                    {{else}}
                        <img class="rowicons" src="systems/worldofdarkness/assets/img/items/weapon_onehand.svg" title="{{localize 'wod.combat.weapon.onehanded'}}">
                    {{/if}}

                </div>
            </div>

            <div class="iconBox">

                <a class="pointer send-chat" title="{{localize 'wod.labels.send'}}" data-itemid="{{item._id}}"><i class="icon fa-solid fa-comment-dots"></i></a>

                {{#if (eq ../locked false)}} 
                    <a class="pointer item-edit" title="{{localize 'wod.labels.edit.meleeweapon'}}" data-type="{{item.type}}" data-item-id="{{item._id}}"><i class="icon fa-solid fa-pen-to-square"></i></a>
                    <a class="pointer item-delete" title="{{localize 'wod.labels.remove.meleeweapon'}}" data-type="{{item.type}}" data-item-id="{{item._id}}"><i class="icon fa-solid fa-trash-can"></i></a>
                {{/if}}

                {{#if (showToolTip item)}}
                    <i class="pointer icon collapsible button fa-solid fa-expand"
                            title="{{localize 'wod.labels.show.description'}}"
                            data-itemid="{{item._id}}"></i>
                {{else}}
                    <i class="icon no-description-disabled fa-solid fa-solid fa-expand"></i>
                {{/if}}

                <a class="pointer" title="LANG: Menu" data-itemid="{{item._id}}"><i class="icon fa-solid fa-ellipsis-vertical"></i></a>
            </div>
        </div>
        <div class="description" data-itemid="{{item._id}}">

            {{{getToolTip_v2 item.system.description item.system.details item.system.bonuslist ../actor}}}

        </div>

    {{/each}}

</div>