Nouvelle fenêtre de jets de dés
This commit is contained in:
22
templates/roll/roll-table.hbs
Normal file
22
templates/roll/roll-table.hbs
Normal file
@@ -0,0 +1,22 @@
|
||||
{{log 'roll-table' carac diff this}}
|
||||
<table class='table-resolution'>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{#each (roll-centered-array diff 2) as |col|}}
|
||||
<th class="table-resolution-level" data-col="{{col}}">{{plusMoins col}}</th>
|
||||
{{/each}}
|
||||
</tr>
|
||||
{{#each (roll-centered-array carac 2) as |row|}}
|
||||
<tr data-row="{{row}}">
|
||||
<td class="table-resolution-carac" data-col="{{col}}">{{computeResolutionScore row -8}}</td>
|
||||
{{#each (roll-centered-array ../diff 2) as |col|}}
|
||||
<td
|
||||
{{#if (and (eq row ../../carac) (eq col ../../diff))}}class="table-resolution-target"{{/if}}
|
||||
data-row="{{row}}" data-col="{{col}}"
|
||||
>
|
||||
{{computeResolutionScore row col}}
|
||||
</td>
|
||||
{{/each}}
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
Reference in New Issue
Block a user