Show
Ignore:
Timestamp:
12/19/07 14:57:52 (15 years ago)
Author:
ralle030583
Message:

- fix for not showing dropped items when nothing

else was destroyed in killmail

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/templates/kill_detail.tpl

    r292 r293  
    6363            <div class="block-header">Ship details</div> 
    6464            <table class="kb-table" width="360" border="0" cellspacing="1"> 
    65 {foreach from=$destroyed item=slot key=slotindex} 
     65{foreach from=$slots item=slot key=slotindex} 
    6666{* set to true to show empty slots *} 
    67 {if $slot.items or $dropped.$slotindex.items} 
     67{if $destroyed.$slotindex or $dropped.$slotindex} 
    6868                <tr class="kb-table-row-even"> 
    6969                    <td class="item-icon" width="32"><img width="32" height="32" src="{$img_url}/{$slot.img}" alt="{$slot.text}" border="0"></td> 
     
    7373    {/if} 
    7474                </tr> 
    75     {foreach from=$slot.items item=i} 
     75    {foreach from=$destroyed.$slotindex item=i} 
    7676                <tr class="kb-table-row-odd"> 
    7777                    <td class="item-icon" width="32" height="34" valign="top"><a href="?a=invtype&id={$i.itemID}">{$i.Icon}</a></td> 
     
    111111                    </tr> 
    112112        {/if} 
    113     {foreachelse} 
    114                 <tr class="kb-table-row-odd"> 
    115                     <td colspan="4" valign="top">No Items lost</td> 
    116                 </tr> 
    117113    {/foreach} 
    118     {foreach from=$dropped.$slotindex.items item=i} 
     114    {foreach from=$dropped.$slotindex item=i} 
    119115                <tr class="kb-table-row-odd" style="background-color: green;"> 
    120116                    <td style="border: 1px solid green;" width="32" height="34" valign="top"><a href="?a=invtype&id={$i.itemID}">{$i.Icon}</a></td>