Amélioration chat-message

- utilisation de partial template
- fixes mineurs (this sur static)
- singulier/pluriel pour points de rêve/points de tâche
This commit is contained in:
Vincent Vandemeulebrouck
2021-01-02 14:10:43 +01:00
parent f2aff6b234
commit d6c65ee3a5
17 changed files with 87 additions and 221 deletions

View File

@ -0,0 +1,23 @@
<div>
<span {{#if ajustements}}class="tooltip" {{/if}}>
{{rolled.caracValue}} à {{numberFormat rolled.finalLevel decimals=0 sign=true}}
{{#if ajustements}}
<div class="tooltiptext ttt-ajustements">
{{#each ajustements as |item key|}}
<div class="{{#if item.strong}}strong-text{{/if}}">
{{#if item.descr}}
{{{item.descr}}}
{{else}}
{{item.label}}: {{numberFormat item.value decimals=0 sign=true}}
{{/if}}
</div>
{{/each}}
</div>
{{/if}}
{{#if rolled.factor}}<span class="rdd-diviseur">&times;{{{rolled.factor}}}</span>{{/if}}
</span>
<span>= {{rolled.score}}%</span>
</div>
<div>
<span>{{rolled.roll}} : </span><span class="rdd-roll-{{rolled.code}} strong-text">{{rolled.quality}}</span>
</div>