miao-plugin/resources/common/tpl/talent-detail.html

62 lines
1.7 KiB
HTML
Raw Normal View History

{{set ds = $data[0] || false }}
{{set {_res_path, icon,lvs,type} = $data[1]}}
<div class="talent-line">
2022-09-19 05:45:42 +00:00
<div class="talent-icon">
<img src="{{_res_path}}{{icon}}"/>
</div>
2022-09-19 05:45:42 +00:00
<div class="talent-info">
<div class="talent-name">{{ds.name}}</div>
<div class="talent-desc">
{{each ds.desc d}}
{{ if d[0] === "<" }}
{{@d}}
{{else if d!=""}}
<p>{{d}}</p>
{{/if}}
{{/each}}
</div>
</div>
{{if ds.tables && ds.tables.length > 0}}
<div class="talent-common-info">
{{each ds.tables tr}}
{{if tr.isSame}}
<div>
<strong>{{tr.name}}{{if tr.unit}}({{tr.unit}}){{/if}}</strong>
<span>{{tr.values[0]}}</span>
</div>
{{/if}}
2022-09-19 05:45:42 +00:00
{{/each}}
</div>
<table class="talent-table cont-table">
<tr class="tr">
<td class="th"></td>
{{each lvs lv idx}}
{{if (type=="a" && idx>4 && idx<11) || (type!="a" && idx>4 && idx < 13)}}
<td class="th lv">{{lv}}</td>
{{/if}}
{{/each}}
</tr>
{{each ds.tables tr}}
{{if !tr.isSame}}
<tr class="tr">
<td class="th talent-name">
{{tr.name}}
{{if tr.unit}}
<span class="unit">({{tr.unit}})</span>
{{/if}}
</td>
{{each tr.values v idx}}
{{if (type=="a" && idx>4 && idx<11) || (type!="a" && idx>4 && idx < 13)}}
<td class="td">{{v}}</td>
{{/if}}
{{/each}}
{{/if}}
</tr>
{{/each}}
</table>
{{/if}}
</div>