-
Notifications
You must be signed in to change notification settings - Fork 0
/
course.tpl
39 lines (36 loc) · 1.13 KB
/
course.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends 'full.tpl'%}
{% block body %}
<body>
<div tabindex="-1" id="notebook" class="border-box-sizing">
<div class="container" id="notebook-container">
<h1 id="main-title">{{ nb.metadata.course_title }}</h1>
{{ super.super() }}
</div>
</div>
</body>
{%- endblock body %}
{% block markdowncell %}
<div class="cell border-box-sizing text_cell rendered{% if cell.custom_class %} {{ cell.custom_class }}{% endif %}">
{%- if resources.global_content_filter.include_input_prompt-%}
{{ self.empty_in_prompt() }}
{%- endif -%}
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
{{ cell.source | markdown2html | strip_files_prefix }}
</div>
</div>
</div>
{% endblock markdowncell %}
{% block in_prompt -%}
<div class="prompt input_prompt">
{%- if cell.metadata.writefile is defined -%}
{{ cell.metadata.writefile }}
{%- elif cell.metadata.runcommand is defined -%}
$
{%- elif cell.execution_count is defined -%}
In [{{ cell.execution_count|replace(None, " ") }}]:
{%- else -%}
In [ ]:
{%- endif -%}
</div>
{%- endblock in_prompt %}