Skip to content
Snippets Groups Projects
Commit 0cbb82c2 authored by David Rouquet's avatar David Rouquet
Browse files

add commentaireInfo to activities

parent 721dcb04
Branches
No related tags found
1 merge request!4Main
......@@ -15,6 +15,14 @@ template mt:activite(?act) {
?desc st:nl()
'<div class="commentaireInfoGroup">' st:nl()
group {
'<div class="commentaireInfo">' st:nl()
?info_comment
'</div>' st:nl()
}
'</div>' st:nl()
# Insert a Hugo shortcode to load the quiz if this is a quiz activity
if (exists { ?act a :Exercice }, "\n{{< quiz >}}", "")
st:call-template(mt:quiz, ?act)
......@@ -25,6 +33,9 @@ where {
?act :id ?id .
?act :titre ?title .
?act :description_md ?desc .
optional {
?act :commentaireInfo_md ?info_comment .
}
optional {
# Turn the page index into a Hugo weight: increment and add a zero, to
# leave room for adding new pages in-between later
......
......@@ -13,7 +13,6 @@ template mt:quiz(?quiz) {
box {
st:call-template(mt:qcu, ?quiz)
st:call-template(mt:qcm, ?quiz)
#st:call-template(mt:json_in_ttl, ?quiz)
}
"}"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment