generated from fastai/fastpages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhide.tpl
executable file
·39 lines (35 loc) · 1.04 KB
/
hide.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 'basic.tpl' -%}
{% block codecell %}
{{ "{% raw %}" }}
{{ super() }}
{{ "{% endraw %}" }}
{% endblock codecell %}
{% block input_group -%}
{%- if cell.metadata.collapse_show -%}
<details class="description" open>
<summary class="btn btn-sm" data-open="Hide Code" data-close="Show Code"></summary>
<p>{{ super() }}</p>
</details>
{%- elif cell.metadata.collapse_hide -%}
<details class="description">
<summary class="btn btn-sm" data-open="Hide Code" data-close="Show Code"></summary>
<p>{{ super() }}</p>
</details>
{%- elif cell.metadata.hide_input or nb.metadata.hide_input -%}
{%- else -%}
{{ super() }}
{%- endif -%}
{% endblock input_group %}
{% block output_group -%}
{%- if cell.metadata.hide_output -%}
{%- else -%}
{{ super() }}
{%- endif -%}
{% endblock output_group %}
{% block output_area_prompt %}
{%- if cell.metadata.hide_input or nb.metadata.hide_input -%}
<div class="prompt"> </div>
{%- else -%}
{{ super() }}
{%- endif -%}
{% endblock output_area_prompt %}