{{#if hasContent}}
{{#if isGM}} {{/if}}
{{#if hasBoardQuests}}
{{#each boardQuests}}

{{this.title}}

{{#if ../isGM}} {{this.activityLabel}} {{ccLocalize "quest.completed"}} {{ccLocalize "quest.failed"}} {{this.urgency}} {{ccLocalize "quest.pinned"}} {{ccLocalize "quest.visible"}} {{ccLocalize "quest.progress"}} {{this.progressPct}}% ({{this.progressLabel}}) {{#if this.isBlocked}}{{ccLocalize "quest.blocked"}}{{/if}} {{ccLocalize "quest.addCheckIn"}} {{ccLocalize "quest.notifyPlayersNow"}} {{else}} {{#unless (or this.completedOn this.failedOn)}} {{this.activityLabel}} {{/unless}} {{#if this.completedOn}} {{ccLocalize "quest.completed"}} {{/if}} {{#if this.failedOn}} {{ccLocalize "quest.failed"}} {{/if}} {{ccLocalize "quest.progress"}} {{this.progressPct}}% ({{this.progressLabel}}) {{#unless (or this.completedOn this.failedOn)}} {{#if this.isBlocked}}{{ccLocalize "quest.blocked"}}{{/if}} {{/unless}} {{/if}} {{#if this.canViewSource}} {{ccLocalize "quest.openSource"}} {{/if}}
{{#if (and this.showImage this.img)}} {{this.title}} {{/if}}
{{#if ../isGM}}
{{/if}}

{{ccLocalize "names.information"}}

{{{this.enrichedDescription}}}
{{#if (or ../isGM this.showRewardsToPlayer)}}

{{ccLocalize "quest.rewards"}}

{{#if ../isGM}}
{{/if}}
    {{#if ../isGM}} {{#if this.canDistributeAwards}} {{/if}} {{/if}} {{#if this.rewardXP}}
  • XP{{this.rewardXP}}
  • {{/if}} {{#if this.rewardCurrency}}
  • {{../currencyLabel}}{{this.rewardCurrency}}
  • {{/if}} {{#if this.rewardReputation}}
  • {{ccLocalize "quest.reputation"}}{{this.rewardReputation}}
  • {{/if}} {{#each this.inventory as |item|}}
  • {{item.name}} (x{{item.quantity}}) {{#if ../../isGM}} {{/if}}
  • {{/each}}
{{/if}} {{#if (or ../isGM this.hasLinkedMacros)}} {{/if}} {{#if (or ../isGM this.hasVisibleQuestLinks)}} {{#if (or ../isGM this.hasQuestGiver)}} {{/if}} {{#if (or ../isGM this.hasRelatedDocs)}} {{/if}} {{/if}} {{#if ../isGM}} {{/if}} {{#if this.visibleObjectives.length}}

{{ccLocalize "quest.objectives"}}

    {{> "modules/campaign-codex/templates/partials/toc-quest-objective.hbs" objectives=this.visibleObjectives isGM=../isGM questId=this.id docUuid=this.journalUuid}}
{{/if}} {{#if this.checkIns.length}}

{{ccLocalize "quest.checkIns"}}

    {{#each this.checkIns}}
  • {{this.note}} {{this.atLabel}}
  • {{/each}}
{{/if}}
{{/each}}
{{else}}

{{ccLocalize "quest.noPinnedQuests"}}

{{/if}}
{{else}}

{{ccLocalize "ui.noQuestsFound"}}

{{/if}}