foundryvtt-reve-de-dragon/templates/coeur/afficher-coeur.hbs

13 lines
502 B
Handlebars

{{log 'Cœur' numero courant prochain}}
<a data-numero-coeur="{{numero}}">
{{#if (and (lte numero courant) (lte numero prochain))}}
<i class="fa-solid fa-heart"></i>
{{else if (and (lte numero courant) (gt numero prochain))}}
<i class="fa-solid fa-heart-crack"></i>
{{else if (and (gt numero courant) (lte numero prochain))}}
<i class="fa-solid fa-hand-holding-heart"></i>
{{else if (and (gt numero courant) (gt numero prochain))}}
<i class="fa-regular fa-heart"></i>
{{/if}}
</a>