##// END OF EJS Templates
Restructuration of null.tpl and addition of inner_cell classes.
damianavila -
Show More
@@ -53,24 +53,40 b' In [{{ cell.prompt_number }}]:'
53 </div>
53 </div>
54 {% endblock output %}
54 {% endblock output %}
55
55
56 {% block markdowncell scoped %}
56 {% block e_in_prompt -%}
57 <div class="text_cell_render border-box-sizing rendered_html">
57 <div class="prompt input_prompt">
58 <div class="prompt input_prompt"></div>
58 </div>
59 {%- endblock e_in_prompt %}
60
61 {% block m_input %}
59 <div class="inner_cell">
62 <div class="inner_cell">
63 <div class="text_cell_render border-box-sizing rendered_html">
60 {{ cell.source | markdown2html | strip_files_prefix }}
64 {{ cell.source | markdown2html | strip_files_prefix }}
61 </div>
65 </div>
62 </div>
66 </div>
63 {%- endblock markdowncell %}
67 {%- endblock m_input %}
64
68
65 {% block headingcell scoped %}
69 {% block h_input %}
70 <div class="inner_cell">
66 <div class="text_cell_render border-box-sizing rendered_html">
71 <div class="text_cell_render border-box-sizing rendered_html">
67 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }}
72 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }}
68 </div>
73 </div>
69 {% endblock headingcell %}
74 </div>
75 {% endblock h_input %}
76
77 {% block r_input %}
78 <div class="inner_cell">
79 {% if cell.metadata.get('raw_mimetype', resources.get('raw_mimetype', '')).lower() in resources.get('raw_mimetypes', ['']) %}
80 {{ cell.source }}
81 {% endif %}
82 </div>
83 {% endblock r_input %}
70
84
71 {% block unknowncell scoped %}
85 {% block u_input %}
86 <div class="inner_cell">
72 unknown type {{ cell.type }}
87 unknown type {{ cell.type }}
73 {% endblock unknowncell %}
88 </div>
89 {% endblock u_input %}
74
90
75 {% block pyout -%}
91 {% block pyout -%}
76 <div class="box-flex1 output_subarea output_pyout">
92 <div class="box-flex1 output_subarea output_pyout">
@@ -71,9 +71,17 b' consider calling super even if it is a leave block, we might insert more blocks '
71 {%- endblock codecell -%}
71 {%- endblock codecell -%}
72 {%- elif cell.cell_type in ['markdown'] -%}
72 {%- elif cell.cell_type in ['markdown'] -%}
73 {%- block markdowncell scoped-%}
73 {%- block markdowncell scoped-%}
74 {%- block input_group -%}
75 {%- block e_in_prompt -%}{%- endblock e_in_prompt -%}
76 {%- block m_input -%}{%- endblock m_input -%}
77 {%- endblock input_group -%}
74 {%- endblock markdowncell -%}
78 {%- endblock markdowncell -%}
75 {%- elif cell.cell_type in ['heading'] -%}
79 {%- elif cell.cell_type in ['heading'] -%}
76 {%- block headingcell scoped-%}
80 {%- block headingcell scoped-%}
81 {%- block input_group -%}
82 {%- block e_in_prompt -%}{%- endblock e_in_prompt -%}
83 {%- block h_input -%}{%- endblock h_input -%}
84 {%- endblock input_group -%}
77 {%- endblock headingcell -%}
85 {%- endblock headingcell -%}
78 {%- elif cell.cell_type in ['raw'] -%}
86 {%- elif cell.cell_type in ['raw'] -%}
79 {%- block rawcell scoped -%}
87 {%- block rawcell scoped -%}
@@ -83,6 +91,10 b' consider calling super even if it is a leave block, we might insert more blocks '
83 {%- endblock rawcell -%}
91 {%- endblock rawcell -%}
84 {%- else -%}
92 {%- else -%}
85 {%- block unknowncell scoped-%}
93 {%- block unknowncell scoped-%}
94 {%- block input_group -%}
95 {%- block e_in_prompt -%}{%- endblock e_in_prompt -%}
96 {%- block u_input -%}{%- endblock u_input -%}
97 {%- endblock input_group -%}
86 {%- endblock unknowncell -%}
98 {%- endblock unknowncell -%}
87 {%- endif -%}
99 {%- endif -%}
88 {%- endblock any_cell -%}
100 {%- endblock any_cell -%}
General Comments 0
You need to be logged in to leave comments. Login now