diff --git a/src/armory/Armory.ts b/src/armory/Armory.ts index 74c35fd..1b23806 100644 --- a/src/armory/Armory.ts +++ b/src/armory/Armory.ts @@ -101,6 +101,12 @@ export class Armory { helpers: { // eslint-disable-next-line @typescript-eslint/no-var-requires ...require("handlebars-helpers")(), + eq: function(a: any, b: any) { + return a === b; + }, + hasInProgressQuests: function(quests: any[]) { + return quests.some(quest => quest.status === 'In Progress'); + } }, }), ); diff --git a/static/character-quests.hbs b/static/character-quests.hbs index 2cac365..c72d08e 100644 --- a/static/character-quests.hbs +++ b/static/character-quests.hbs @@ -4,18 +4,24 @@ const aowow_tooltips = { "renamelinks": true, }; - - {{> character-header }} {{#each data.categories as |quests category|}}