Files
fvtt-donjon-et-cie/templates/chat/roll-card.hbs

39 lines
1.7 KiB
Handlebars

<section class="dnc-chat-card dnc-chat-card-roll">
<header class="chat-card-header">
<div class="chat-card-heading">
<p class="chat-card-kicker">Resolution</p>
<h2>{{title}}</h2>
{{#if subtitle}}<p class="chat-card-subtitle">{{subtitle}}</p>{{/if}}
</div>
<div class="chat-card-seal {{#if success}}success{{else}}failure{{/if}}">
{{#if success}}OK{{else}}KO{{/if}}
</div>
</header>
<div class="chat-pill-row">
<span class="chat-pill {{#if success}}success{{else}}failure{{/if}}">{{#if success}}Reussite{{else}}Echec{{/if}}</span>
{{#if modeLabel}}<span class="chat-pill">{{modeLabel}}</span>{{/if}}
{{#if favorLabel}}<span class="chat-pill">Faveur {{favorLabel}}</span>{{/if}}
{{#if targetPillLabel}}<span class="chat-pill">{{targetPillLabel}} {{targetPillValue}}</span>{{else}}<span class="chat-pill">Cible {{target}}</span>{{/if}}
{{#if keptPillLabel}}<span class="chat-pill">{{keptPillLabel}} {{keptPillValue}}</span>{{else}}<span class="chat-pill">Garde {{kept}}</span>{{/if}}
</div>
<div class="chat-keyline">
<span class="chat-keyline-label">Lancers</span>
<p class="roll-values">{{#each values}}<span>{{this}}</span>{{/each}}</p>
</div>
{{#if favorNote}}
<p class="chat-note"><strong>Faveur</strong> : {{favorNote}}</p>
{{/if}}
{{#if showDamageButton}}
<div class="chat-actions">
<button type="button" class="chat-action-button" data-action="rollChatDamage" data-item-uuid="{{itemUuid}}">
<i class="fa-solid fa-burst"></i> Lancer les degats
</button>
</div>
{{/if}}
<ul class="chat-details chat-details-ornate">
{{#each details}}
<li><strong>{{this.label}}</strong> : {{this.value}}</li>
{{/each}}
</ul>
</section>