From c3d8f53c1be576d196b32f83969284450799a28c Mon Sep 17 00:00:00 2001 From: raphaelpieroni Date: Tue, 11 May 2021 23:41:58 +0200 Subject: [PATCH] Align skills and caracs --- module/rdd-utility.js | 1 + ...r-sheet-categorie-competences-partial.html | 2 +- templates/actor-sheet-competence-partial.html | 59 +++++++++---------- templates/actor-sheet.html | 20 +++---- 4 files changed, 40 insertions(+), 42 deletions(-) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 7e575f86..614dec35 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -220,6 +220,7 @@ export class RdDUtility { Handlebars.registerHelper('caseTmr-type', coord => TMRUtility.getTMRType(coord)); Handlebars.registerHelper('typeTmr-name', coord => TMRUtility.typeTmrName(coord)); Handlebars.registerHelper('equals', (a, b) => a == b); + Handlebars.registerHelper('sortCompetence', competences => competences.sort((a, b) => { return a.name.localeCompare(b.name); }) ); return loadTemplates(templatePaths); } diff --git a/templates/actor-sheet-categorie-competences-partial.html b/templates/actor-sheet-categorie-competences-partial.html index a3fa8da9..8a20a5e5 100644 --- a/templates/actor-sheet-categorie-competences-partial.html +++ b/templates/actor-sheet-categorie-competences-partial.html @@ -1,7 +1,7 @@
{{categorie}}
-