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