Skip to content

Commit

Permalink
add templates (fix `WARNING: Example context missing (@template secti…
Browse files Browse the repository at this point in the history
…on not found.)`)
  • Loading branch information
Glutamat42 committed May 6, 2024
1 parent 41765ff commit 5d083ba
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions templates/index_page.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
{{! This is the Mustache template for the index page }}

{{! @template
{
"module_name_plural": "Adler Activities",
"course_format_uses_sections": true,
"column_title_section": "Section",
"column_title_activity_name": "Activity Name",
"adleradaptivities": [
{
"section": "Section 1",
"coursemodule_url": "http://example.com/coursemodule1",
"coursemodule_name": "Course Module 1"
},
{
"section": "Section 2",
"coursemodule_url": "http://example.com/coursemodule2",
"coursemodule_name": "Course Module 2"
}
]
}
}}


<h2>{{ module_name_plural }}</h2>


Expand Down
23 changes: 23 additions & 0 deletions templates/questions.mustache
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
{{! @template
{
"module_completed": false,
"is_behat_mode": false,
"tasks": [
{
"title": "Task 1",
"optional": false,
"difficulty": "Medium",
"status_success": false,
"status_behat_class": "behat_status-failure",
"status_message": "Task not completed",
"questions": [
{
"status_best_try": false,
"content": "Question 1 content"
}
]
}
]
}
}}

<div class="mod_adleradaptivity_questions">
<!-- Module completion messages -->
{{#module_completed}}
Expand Down

0 comments on commit 5d083ba

Please sign in to comment.