Skip to content

Commit

Permalink
allows context collapsing - issue #385
Browse files Browse the repository at this point in the history
  • Loading branch information
Drumor committed Oct 14, 2019
1 parent eb0cc25 commit a6c6985
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inginious/frontend/templates/task.html
Expand Up @@ -280,6 +280,7 @@ <h2>
</div>
</div>
</h2>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#task_context">Collapse context</button>
$# Input random
$# set up some useful variable that may be used by task author
$# variable "input" has to be accessible to the eventual javascript present in the context of the task.
Expand All @@ -291,7 +292,9 @@ <h2>
"@state": "$(user_task.get('state', '') if registered else '')"
}
</script>
$:task.get_context(user_manager.session_language())
<div id="task_context" class="collapse show">
$:task.get_context(user_manager.session_language())
</div>
<hr/>
<div id="task_alert"></div>
<div id="ssh_template" style="display:none;">
Expand Down

0 comments on commit a6c6985

Please sign in to comment.