diff options
author | James Phillpotts <jphillpotts@scottlogic.co.uk> | 2014-04-08 09:51:11 +0100 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-04-12 01:25:07 -0700 |
commit | f6595f51119baca04bf91e619f64518d400e5cae (patch) | |
tree | 765ad8ab0f40d3bb68c03e8df1d5246664556e9c /theme/templates/page.html | |
parent | ab27725b9935b185a58b725e75aedeb579e87d8f (diff) | |
download | gitbook-f6595f51119baca04bf91e619f64518d400e5cae.zip gitbook-f6595f51119baca04bf91e619f64518d400e5cae.tar.gz gitbook-f6595f51119baca04bf91e619f64518d400e5cae.tar.bz2 |
Tabular quiz
Diffstat (limited to 'theme/templates/page.html')
-rw-r--r-- | theme/templates/page.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/theme/templates/page.html b/theme/templates/page.html index 6f5115f..1467e68 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -55,6 +55,13 @@ <pre><code>{% autoescape false %}{{ section.code.base|code }}{% endautoescape %}</code></pre> {% set exercise = exercise + 1 %} </div> + {% elif section.type == "quiz" %} + <div class="quiz"> + <div class="exercise-header">Exercise #{{ exercise }}</div> + {% autoescape false %}{{ section.content }}{% endautoescape %} + {% autoescape false %}{{ section.quiz.base }}{% endautoescape %} + {% set exercise = exercise + 1 %} + </div> {% endif %} {% endfor %} </article> @@ -79,6 +86,13 @@ <pre><code>{% autoescape false %}{{ section.code.base|code }}{% endautoescape %}</code></pre> {% set exercise = exercise + 1 %} </div> + {% elif section.type == "quiz" %} + <div class="quiz"> + <div class="exercise-header">Exercise #{{ exercise }}</div> + {% autoescape false %}{{ section.content }}{% endautoescape %} + {% autoescape false %}{{ section.quiz.base }}{% endautoescape %} + {% set exercise = exercise + 1 %} + </div> {% endif %} {% endfor %} </article> @@ -108,6 +122,13 @@ <pre><code>{% autoescape false %}{{ section.code.solution|code }}{% endautoescape %}</code></pre> {% set exercise = exercise + 1 %} </div> + {% elif section.type == "quiz" %} + <div class="quiz"> + <div class="exercise-header">Exercise #{{ exercise }}</div> + {% autoescape false %}{{ section.content }}{% endautoescape %} + {% autoescape false %}{{ section.quiz.solution }}{% endautoescape %} + {% set exercise = exercise + 1 %} + </div> {% endif %} {% endfor %} {% endif %} |