##// END OF EJS Templates
working on html
Matthias BUSSONNIER -
Show More
@@ -1,42 +1,43 b''
1 {%- extends 'basic.tpl' -%}
1 {%- extends 'null.tpl' -%}
2
2
3
3
4
4
5
5 {% block codecell %}
6 {% block codecell scoped %}
7 <div class="cell border-box-sizing code_cell vbox">
6 <div class="cell border-box-sizing code_cell vbox">
8 <div class="input hbox">
7 {{ super() }}
9 <div class="prompt input_prompt">In&nbsp;[{{cell.prompt_number if cell.prompt_number else '&nbsp;'}}]:</div>
10 <div class="input_area box-flex1">
11 {{ cell.input|highlight -}}
12 </div>
8 </div>
9 {% endblock codecell %}
10
11 {% block input_group -%}
12 <div class="input hbox">
13 {{super()}}
13 </div>
14 </div>
14 {% if cell.outputs %}
15 {% endblock input_group %}
15 {%- for output in cell.outputs -%}
16
17 {% block output_group -%}
16 <div class="vbox output_wrapper">
18 <div class="vbox output_wrapper">
17 <div class="output vbox">
19 <div class="output vbox">
18 <div class="hbox output_area">
20 <div class="hbox output_area">
19 <div class="prompt output_prompt"></div>
21 {{ super() }}
20 {%- if output.output_type in ['pyout','stream'] %}
21 <div class="output_subarea output_stream output_stdout">
22 <pre>{{ output.text }}</pre>
23 </div>
24 </div>
25 </div>
22 </div>
26 {%- elif output.output_type in ['display_data'] %}
27 <div class="output_subarea output_display_data">
28 {{"# image file: fucking display_data"}}
29 </div>
23 </div>
30 {%- elif output.output_type in ['pyerr'] %}
31 {%- for line in output.traceback %}
32 {{ line |indent| rm_ansi}}
33 {%- endfor %}
34 {%- endif %}
35 {%- endfor -%}
36 {% endif %}
37 </div>
24 </div>
38 </div>
25 {% endblock output_group %}
39 {% endblock codecell %}
26
27
28 {% block in_prompt -%}
29 <div class="prompt input_prompt">In&nbsp;[{{cell.prompt_number}}]:</div>
30 {%- endblock in_prompt %}
31
32 {% block output_prompt -%}
33 <div class="prompt output_prompt"></div>
34 {% endblock output_prompt %}
35
36 {% block input %}
37 <div class="input_area box-flex1">
38 {{cell.input | highlight }}</div>
39 {%- endblock input %}
40
40
41
41 {% block markdowncell scoped -%}
42 {% block markdowncell scoped -%}
42 <div class="text_cell_render border-box-sizing rendered_html">
43 <div class="text_cell_render border-box-sizing rendered_html">
@@ -59,3 +60,16 b''
59 {% block unknowncell scoped %}
60 {% block unknowncell scoped %}
60 unknown type {{cell.type}}
61 unknown type {{cell.type}}
61 {% endblock unknowncell %}
62 {% endblock unknowncell %}
63
64
65 {% block pyout -%}
66 <div class="output_subarea output_stream output_stdout">
67 <pre>{{output.text}}</pre>
68 </div>
69 {%- endblock pyout %}
70
71 {% block stream -%}
72 <div class="output_subarea output_stream output_stdout">
73 <pre>{{output.text}}</pre>
74 </div>
75 {%- endblock stream %}
@@ -29,26 +29,32 b' consider calling super even if block is leave block, we might insert more block '
29 {%- block any_cell scoped -%}
29 {%- block any_cell scoped -%}
30 {%- if cell.type in ['code'] -%}
30 {%- if cell.type in ['code'] -%}
31 {%- block codecell scoped -%}
31 {%- block codecell scoped -%}
32 {%- block in_prompt -%}{%- endblock in_prompt -%}
32 {%- block input_group -%}
33 {%- block input -%}{%- endblock input -%}
33 {%- block in_prompt -%}{%- endblock in_prompt -%}
34 {%- if cell.outputs -%}
34 {%- block input -%}{%- endblock input -%}
35 {%- block output_prompt -%}{%- endblock output_prompt -%}
35 {%- endblock input_group -%}
36 {%- for output in cell.outputs -%}
36 {%- block output_group -%}
37 {%- if output.output_type in ['pyout'] -%}
37 {%- if cell.outputs -%}
38 {%- block pyout scoped -%}{%- endblock pyout -%}
38 {%- block output_prompt -%}{%- endblock output_prompt -%}
39 {%- elif output.output_type in ['stream'] -%}
39 {%- block outputs -%}
40 {%- block stream scoped -%}{%- endblock stream -%}
40 {%- for output in cell.outputs -%}
41 {%- elif output.output_type in ['display_data'] -%}
41 {%- if output.output_type in ['pyout'] -%}
42 {%- block display_data scoped -%}{%- endblock display_data -%}
42 {%- block pyout scoped -%}{%- endblock pyout -%}
43 {%- elif output.output_type in ['pyerr'] -%}
43 {%- elif output.output_type in ['stream'] -%}
44 {%- block pyerr scoped -%}
44 {%- block stream scoped -%}{%- endblock stream -%}
45 {%- for line in output.traceback -%}
45 {%- elif output.output_type in ['display_data'] -%}
46 {%- block traceback_line scoped -%}{%- endblock traceback_line -%}
46 {%- block display_data scoped -%}{%- endblock display_data -%}
47 {%- endfor -%}
47 {%- elif output.output_type in ['pyerr'] -%}
48 {%- endblock pyerr -%}
48 {%- block pyerr scoped -%}
49 {%- for line in output.traceback -%}
50 {%- block traceback_line scoped -%}{%- endblock traceback_line -%}
51 {%- endfor -%}
52 {%- endblock pyerr -%}
53 {%- endif -%}
54 {%- endfor -%}
55 {%- endblock outputs -%}
49 {%- endif -%}
56 {%- endif -%}
50 {%- endfor -%}
57 {%- endblock output_group -%}
51 {%- endif -%}
52 {%- endblock codecell -%}
58 {%- endblock codecell -%}
53 {%- elif cell.type in ['markdown'] -%}
59 {%- elif cell.type in ['markdown'] -%}
54 {%- block markdowncell scoped-%}
60 {%- block markdowncell scoped-%}
General Comments 0
You need to be logged in to leave comments. Login now