Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/score-window/score-window.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class ScoreWindowComponent implements OnInit {

private async assembleClipboardText(): Promise<void> {
const templateParams: WeekScoreTemplateParams = {
year: this.currentYear,
week: this.currentWeek,
rightAnswers: this.currentWeekScore!.rightAnswers,
wrongAnswers: this.currentWeekScore!.wrongAnswers,
Expand Down
4 changes: 2 additions & 2 deletions src/assets/templates/question_result.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
❔ XPQuiz - xpquiz.github.io 🤔

👉 {{{question}}} 👈

🟩 {{{rightAnswer}}}
Expand All @@ -8,3 +6,5 @@
{{/wrongAnswers}}

I picked... {{{selectedAnswer}}} {{#questionPoints}}(+{{.}} point(s)){{/questionPoints}}

🤔 XPQuiz - xpquiz.github.io ❔
5 changes: 3 additions & 2 deletions src/assets/templates/week_score.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
❔ XPQuiz - xpquiz.github.io 🤔
Here's my week score!
Here are my results for {{ year }}, week {{ week }}!

🟩 Right answers: {{rightAnswers}}
🟥 Wrong answers: {{wrongAnswers}}
🟦 Total score: {{totalScore}}

🤔 XPQuiz - xpquiz.github.io ❔
1 change: 1 addition & 0 deletions src/model/Template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface TemplateParams {
}

export interface WeekScoreTemplateParams extends TemplateParams {
year: number,
week: number,
rightAnswers: number,
wrongAnswers: number,
Expand Down