##// END OF EJS Templates
Removed some box-flex1 classes
Jonathan Frederic -
Show More
@@ -1,187 +1,187 b''
1 {%- extends 'display_priority.tpl' -%}
1 {%- extends 'display_priority.tpl' -%}
2
2
3
3
4 {% block codecell %}
4 {% block codecell %}
5 <div class="cell border-box-sizing code_cell rendered unselected">
5 <div class="cell border-box-sizing code_cell rendered unselected">
6 {{ super() }}
6 {{ super() }}
7 </div>
7 </div>
8 {%- endblock codecell %}
8 {%- endblock codecell %}
9
9
10 {% block input_group -%}
10 {% block input_group -%}
11 <div class="input">
11 <div class="input">
12 {{ super() }}
12 {{ super() }}
13 </div>
13 </div>
14 {% endblock input_group %}
14 {% endblock input_group %}
15
15
16 {% block output_group %}
16 {% block output_group %}
17 <div class="output_wrapper">
17 <div class="output_wrapper">
18 <div class="output">
18 <div class="output">
19 {{ super() }}
19 {{ super() }}
20 </div>
20 </div>
21 </div>
21 </div>
22 {% endblock output_group %}
22 {% endblock output_group %}
23
23
24 {% block in_prompt -%}
24 {% block in_prompt -%}
25 <div class="prompt input_prompt">
25 <div class="prompt input_prompt">
26 In&nbsp;[{{ cell.prompt_number }}]:
26 In&nbsp;[{{ cell.prompt_number }}]:
27 </div>
27 </div>
28 {%- endblock in_prompt %}
28 {%- endblock in_prompt %}
29
29
30 {% block empty_in_prompt -%}
30 {% block empty_in_prompt -%}
31 <div class="prompt input_prompt">
31 <div class="prompt input_prompt">
32 </div>
32 </div>
33 {%- endblock empty_in_prompt %}
33 {%- endblock empty_in_prompt %}
34
34
35 {#
35 {#
36 output_prompt doesn't do anything in HTML,
36 output_prompt doesn't do anything in HTML,
37 because there is a prompt div in each output area (see output block)
37 because there is a prompt div in each output area (see output block)
38 #}
38 #}
39 {% block output_prompt %}
39 {% block output_prompt %}
40 {% endblock output_prompt %}
40 {% endblock output_prompt %}
41
41
42 {% block input %}
42 {% block input %}
43 <div class="inner_cell">
43 <div class="inner_cell">
44 <div class="input_area">
44 <div class="input_area">
45 {{ cell.input | highlight2html(language=resources.get('language'), metadata=cell.metadata) }}
45 {{ cell.input | highlight2html(language=resources.get('language'), metadata=cell.metadata) }}
46 </div>
46 </div>
47 </div>
47 </div>
48 {%- endblock input %}
48 {%- endblock input %}
49
49
50 {% block output %}
50 {% block output %}
51 <div class="output_area">
51 <div class="output_area">
52 {%- if output.output_type == 'pyout' -%}
52 {%- if output.output_type == 'pyout' -%}
53 <div class="prompt output_prompt">
53 <div class="prompt output_prompt">
54 Out[{{ cell.prompt_number }}]:
54 Out[{{ cell.prompt_number }}]:
55 {%- else -%}
55 {%- else -%}
56 <div class="prompt">
56 <div class="prompt">
57 {%- endif -%}
57 {%- endif -%}
58 </div>
58 </div>
59 {{ super() }}
59 {{ super() }}
60 </div>
60 </div>
61 {% endblock output %}
61 {% endblock output %}
62
62
63 {% block markdowncell scoped %}
63 {% block markdowncell scoped %}
64 <div class="cell border-box-sizing text_cell rendered unselected">
64 <div class="cell border-box-sizing text_cell rendered unselected">
65 {{ self.empty_in_prompt() }}
65 {{ self.empty_in_prompt() }}
66 <div class="inner_cell">
66 <div class="inner_cell">
67 <div class="text_cell_render border-box-sizing rendered_html">
67 <div class="text_cell_render border-box-sizing rendered_html">
68 {{ cell.source | markdown2html | strip_files_prefix }}
68 {{ cell.source | markdown2html | strip_files_prefix }}
69 </div>
69 </div>
70 </div>
70 </div>
71 </div>
71 </div>
72 {%- endblock markdowncell %}
72 {%- endblock markdowncell %}
73
73
74 {% block headingcell scoped %}
74 {% block headingcell scoped %}
75 <div class="cell border-box-sizing text_cell rendered unselected">
75 <div class="cell border-box-sizing text_cell rendered unselected">
76 {{ self.empty_in_prompt() }}
76 {{ self.empty_in_prompt() }}
77 <div class="inner_cell">
77 <div class="inner_cell">
78 <div class="text_cell_render border-box-sizing rendered_html">
78 <div class="text_cell_render border-box-sizing rendered_html">
79 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }}
79 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }}
80 </div>
80 </div>
81 </div>
81 </div>
82 </div>
82 </div>
83 {% endblock headingcell %}
83 {% endblock headingcell %}
84
84
85 {% block unknowncell scoped %}
85 {% block unknowncell scoped %}
86 unknown type {{ cell.type }}
86 unknown type {{ cell.type }}
87 {% endblock unknowncell %}
87 {% endblock unknowncell %}
88
88
89 {% block pyout -%}
89 {% block pyout -%}
90 <div class="output_subarea output_text">
90 <div class="output_subarea output_text">
91 {% block data_priority scoped %}
91 {% block data_priority scoped %}
92 {{ super() }}
92 {{ super() }}
93 {% endblock %}
93 {% endblock %}
94 </div>
94 </div>
95 {%- endblock pyout %}
95 {%- endblock pyout %}
96
96
97 {% block stream_stdout -%}
97 {% block stream_stdout -%}
98 <div class="box-flex1 output_subarea output_stream output_stdout">
98 <div class="output_subarea output_stream output_stdout output_text">
99 <pre>
99 <pre>
100 {{ output.text | ansi2html }}
100 {{ output.text | ansi2html }}
101 </pre>
101 </pre>
102 </div>
102 </div>
103 {%- endblock stream_stdout %}
103 {%- endblock stream_stdout %}
104
104
105 {% block stream_stderr -%}
105 {% block stream_stderr -%}
106 <div class="box-flex1 output_subarea output_stream output_stderr">
106 <div class="box-flex1 output_subarea output_stream output_stderr">
107 <pre>
107 <pre>
108 {{ output.text | ansi2html }}
108 {{ output.text | ansi2html }}
109 </pre>
109 </pre>
110 </div>
110 </div>
111 {%- endblock stream_stderr %}
111 {%- endblock stream_stderr %}
112
112
113 {% block data_svg -%}
113 {% block data_svg -%}
114 {%- if output.svg_filename %}
114 {%- if output.svg_filename %}
115 <img src="{{output.svg_filename | posix_path}}"
115 <img src="{{output.svg_filename | posix_path}}"
116 {%- else %}
116 {%- else %}
117 {{ output.svg }}
117 {{ output.svg }}
118 {%- endif %}
118 {%- endif %}
119 {%- endblock data_svg %}
119 {%- endblock data_svg %}
120
120
121 {% block data_html -%}
121 {% block data_html -%}
122 <div class="output_html rendered_html">
122 <div class="output_html rendered_html">
123 {{ output.html }}
123 {{ output.html }}
124 </div>
124 </div>
125 {%- endblock data_html %}
125 {%- endblock data_html %}
126
126
127 {% block data_png %}
127 {% block data_png %}
128 {%- if output.png_filename %}
128 {%- if output.png_filename %}
129 <img src="{{output.png_filename | posix_path}}"
129 <img src="{{output.png_filename | posix_path}}"
130 {%- else %}
130 {%- else %}
131 <img src="data:image/png;base64,{{ output.png }}"
131 <img src="data:image/png;base64,{{ output.png }}"
132 {%- endif %}
132 {%- endif %}
133 {%- if 'metadata' in output and 'width' in output.metadata.get('png', {}) %}
133 {%- if 'metadata' in output and 'width' in output.metadata.get('png', {}) %}
134 width={{output.metadata['png']['width']}}
134 width={{output.metadata['png']['width']}}
135 {%- endif %}
135 {%- endif %}
136 {%- if 'metadata' in output and 'height' in output.metadata.get('png', {}) %}
136 {%- if 'metadata' in output and 'height' in output.metadata.get('png', {}) %}
137 height={{output.metadata['png']['height']}}
137 height={{output.metadata['png']['height']}}
138 {%- endif %}
138 {%- endif %}
139 >
139 >
140 {%- endblock data_png %}
140 {%- endblock data_png %}
141
141
142 {% block data_jpg %}
142 {% block data_jpg %}
143 {%- if output.jpeg_filename %}
143 {%- if output.jpeg_filename %}
144 <img src="{{output.jpeg_filename | posix_path}}"
144 <img src="{{output.jpeg_filename | posix_path}}"
145 {%- else %}
145 {%- else %}
146 <img src="data:image/jpeg;base64,{{ output.jpeg }}"
146 <img src="data:image/jpeg;base64,{{ output.jpeg }}"
147 {%- endif %}
147 {%- endif %}
148 {%- if 'metadata' in output and 'width' in output.metadata.get('jpeg', {}) %}
148 {%- if 'metadata' in output and 'width' in output.metadata.get('jpeg', {}) %}
149 width={{output.metadata['jpeg']['width']}}
149 width={{output.metadata['jpeg']['width']}}
150 {%- endif %}
150 {%- endif %}
151 {%- if 'metadata' in output and 'height' in output.metadata.get('jpeg', {}) %}
151 {%- if 'metadata' in output and 'height' in output.metadata.get('jpeg', {}) %}
152 height={{output.metadata['jpeg']['height']}}
152 height={{output.metadata['jpeg']['height']}}
153 {%- endif %}
153 {%- endif %}
154 >
154 >
155 {%- endblock data_jpg %}
155 {%- endblock data_jpg %}
156
156
157 {% block data_latex %}
157 {% block data_latex %}
158 {{ output.latex }}
158 {{ output.latex }}
159 {%- endblock data_latex %}
159 {%- endblock data_latex %}
160
160
161 {% block pyerr -%}
161 {% block pyerr -%}
162 <div class="box-flex1 output_subarea output_pyerr">
162 <div class="output_subarea output_text output_pyerr">
163 <pre>{{ super() }}</pre>
163 <pre>{{ super() }}</pre>
164 </div>
164 </div>
165 {%- endblock pyerr %}
165 {%- endblock pyerr %}
166
166
167 {%- block traceback_line %}
167 {%- block traceback_line %}
168 {{ line | ansi2html }}
168 {{ line | ansi2html }}
169 {%- endblock traceback_line %}
169 {%- endblock traceback_line %}
170
170
171 {%- block data_text %}
171 {%- block data_text %}
172 <pre>
172 <pre>
173 {{ output.text | ansi2html }}
173 {{ output.text | ansi2html }}
174 </pre>
174 </pre>
175 {%- endblock -%}
175 {%- endblock -%}
176
176
177 {%- block data_javascript %}
177 {%- block data_javascript %}
178 <script type="text/javascript">
178 <script type="text/javascript">
179 {{ output.javascript }}
179 {{ output.javascript }}
180 </script>
180 </script>
181 {%- endblock -%}
181 {%- endblock -%}
182
182
183 {%- block display_data scoped -%}
183 {%- block display_data scoped -%}
184 <div class="box-flex1 output_subarea output_display_data">
184 <div class="box-flex1 output_subarea output_display_data">
185 {{ super() }}
185 {{ super() }}
186 </div>
186 </div>
187 {%- endblock display_data -%}
187 {%- endblock display_data -%}
General Comments 0
You need to be logged in to leave comments. Login now