37 lines
1.1 KiB
Handlebars
37 lines
1.1 KiB
Handlebars
<div class="dice-tooltip">
|
|
<div class="wrapper">
|
|
<div class="tooltip-parts">
|
|
{{#each parts}}
|
|
<section class="tooltip-part {{this.type}}">
|
|
<div class="dice">
|
|
<header class="part-header flexrow">
|
|
<span class="part-formula">{{this.formula}}</span>
|
|
{{#if this.flavor}}<span class="part-flavor">{{this.flavor}}</span>{{/if}}
|
|
<span class="part-total{{#if this.total}} success{{/if}}">{{this.total}}</span>
|
|
</header>
|
|
<ol class="dice-rolls">
|
|
{{#if ../pushed}}
|
|
{{#each this.rolls as | lineRolls |}}
|
|
<div class="dice-rolls" style="margin-top: 0; margin-bottom: 0;">
|
|
{{#each lineRolls}}
|
|
{{#if this}}
|
|
<span class="roll {{this.classes}}">{{{this.result}}}</span>
|
|
{{else}}
|
|
<span class="roll discarded" style="background-image: none;"> </span>
|
|
{{/if}}
|
|
{{/each}}
|
|
</div>
|
|
{{/each}}
|
|
{{else}}
|
|
{{#each this.rolls}}
|
|
<li class="roll {{this.classes}}">{{{this.result}}}</li>
|
|
{{/each}}
|
|
{{/if}}
|
|
</ol>
|
|
</div>
|
|
</section>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
</div>
|