summaryrefslogtreecommitdiffstats
path: root/theme/templates/page.html
diff options
context:
space:
mode:
authorJames Phillpotts <jphillpotts@scottlogic.co.uk>2014-04-08 09:51:11 +0100
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-12 01:25:07 -0700
commitf6595f51119baca04bf91e619f64518d400e5cae (patch)
tree765ad8ab0f40d3bb68c03e8df1d5246664556e9c /theme/templates/page.html
parentab27725b9935b185a58b725e75aedeb579e87d8f (diff)
downloadgitbook-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.html21
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 %}