Show module version in report header
This commit is contained in:
@@ -39,6 +39,7 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
|
||||
showAll: this.#showAll,
|
||||
progress: this.#progress,
|
||||
notices: this.#analysis?.notices ?? [],
|
||||
moduleVersion: game.modules.get("kosmos-storage-audit")?.version ?? null,
|
||||
summary: this.#summarize(this.#analysis),
|
||||
groupedFindings
|
||||
};
|
||||
@@ -50,7 +51,10 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
|
||||
container.innerHTML = `
|
||||
<section class="storage-audit__hero">
|
||||
<div>
|
||||
<h2>${localize("KSA.Hero.Title")}</h2>
|
||||
<div class="storage-audit__title-row">
|
||||
<h2>${localize("KSA.Hero.Title")}</h2>
|
||||
${context.moduleVersion ? `<span class="storage-audit__version">v${escapeHtml(context.moduleVersion)}</span>` : ""}
|
||||
</div>
|
||||
<p>${renderLocalizedCodeText("KSA.Hero.Intro1", { dataRoot: "data", publicRoot: "public" }, ["data", "public"])}</p>
|
||||
<p>${renderLocalizedCodeText("KSA.Hero.Intro2", { dataRoot: "data" }, ["data"])}</p>
|
||||
<p>${escapeHtml(localize("KSA.Hero.Intro3"))}</p>
|
||||
|
||||
Reference in New Issue
Block a user