forked from public/foundryvtt-reve-de-dragon
Rendu des tables de compendiums
This commit is contained in:
21
templates/chat-compendium-table.hbs
Normal file
21
templates/chat-compendium-table.hbs
Normal file
@ -0,0 +1,21 @@
|
||||
<div>
|
||||
<img class="chat-icon" src="{{img}}" data-tooltip="{{typeName}}" />
|
||||
<h4>Table aléatoire: {{typeName}}</h4>
|
||||
{{#with (lookup table 0) as |row|}}
|
||||
<div>
|
||||
{{row.document.pack}}
|
||||
</div>
|
||||
{{/with}}
|
||||
<br>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="flexcol item-list alterne-list">
|
||||
{{#each table as |row|}}
|
||||
<li class="item list-item ">
|
||||
<span class="flex-group-left">
|
||||
{{row.min}}{{#unless (eq row.min row.max)}}-{{row.max}}{{/unless}} : {{linkCompendium row.document.pack row.document.id row.document.name}}
|
||||
</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
Reference in New Issue
Block a user