source: aowow/templates/wowhead/bricks/object_table.tpl

Last change on this file was 170, checked in by maron, 16 years ago
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1{strip}
2
3{assign var="percent" value=false}
4{assign var="skill" value=false}
5
6{foreach from=$data item=curr}
7 {if isset($curr.percent)}{assign var="percent" value=true}{/if}
8 {if isset($curr.skill)}{assign var="skill" value=true}{/if}
9{/foreach}
10
11new Listview({ldelim}
12 template:'object',
13 id:'{$id}',
14 {if isset($name)}name: LANG.tab_{$name},{/if}
15 {if isset($tabsid)}tabs:{$tabsid},parent:'listview-generic',{/if}
16 {if $percent}extraCols:[Listview.extraCols.percent],{/if}
17 {if $skill}visibleCols:['skill'],{/if}
18 sort: [{if $skill}'skill',{/if}{if $percent}'-percent',{/if} 'name'],
19 hiddenCols:[],
20 data:[
21 {section name=i loop=$data}
22 {ldelim}
23 {* Название обекта, обязательно *}
24 name: '{$data[i].name|escape:"quotes"}',
25 {* Тип обекта, обязательно *}
26 type: {$data[i].type},
27 {* Процент дропа *}
28 {if $percent}
29 percent: {$data[i].percent},
30 {/if}
31 {* Необходимый уровень скилла *}
32 {if $skill}
33 skill: {$data[i].skill},
34 {/if}
35 {* Номер объекта, обязателен *}
36 id: {$data[i].entry}
37 {rdelim}
38 {if $smarty.section.i.last}{else},{/if}
39 {/section}
40 ]{rdelim}
41);
42{/strip}
43
Note: See TracBrowser for help on using the repository browser.