##// END OF EJS Templates
fixup html anchor...
Matthias BUSSONNIER -
Show More
@@ -1,138 +1,139 b''
1 1 {%- extends 'display_priority.tpl' -%}
2 2
3 3
4 4
5 5 {% block codecell %}
6 6 <div class="cell border-box-sizing code_cell vbox">
7 7 {{ super() }}</div>
8 8 {%- endblock codecell %}
9 9
10 10 {% block input_group -%}
11 11 <div class="input hbox">
12 12 {{super()}}
13 13 </div>
14 14 {% endblock input_group %}
15 15
16 16 {% block outputs -%}
17 17 <div class="output vbox">
18 18 {{ super() }}
19 19 </div>
20 20 {% endblock outputs %}
21 21
22 22 {% block output_group -%}
23 23 <div class="vbox output_wrapper">
24 24 <div class="hbox output_area">
25 25 {{ super() }}
26 26 </div>
27 27 </div>
28 28 {% endblock output_group %}
29 29
30 30
31 31 {% block in_prompt -%}
32 32 <div class="prompt input_prompt">In&nbsp;[{{cell.prompt_number}}]:</div>
33 33 {%- endblock in_prompt %}
34 34
35 35 {% block output_prompt -%}
36 36 <div class="prompt output_prompt">
37 37 {%- if cell.haspyout -%}
38 38 Out[{{cell.prompt_number}}]:
39 39 {%- endif -%}
40 40 </div>
41 41 {% endblock output_prompt %}
42 42
43 43 {% block input %}
44 44 <div class="input_area box-flex1">
45 45 {{cell.input | highlight }}
46 46 </div>
47 47 {%- endblock input %}
48 48
49 49
50 50 {% block markdowncell scoped %}
51 51 <div class="text_cell_render border-box-sizing rendered_html">
52 52 {{ cell.source | markdown| rm_fake}}
53 53 </div>
54 54 {%- endblock markdowncell %}
55 55
56 56 {% block headingcell scoped %}
57 57 <div class="text_cell_render border-box-sizing rendered_html">
58 58 <h{{cell.level}}>
59 <a class="heading-anchor" name="{{cell.source}}">
59 {% set source = cell.source | replace(' ','_') %}
60 <a class="heading-anchor" id="{{source}}" href="#{{source}}">
60 61 {{cell.source}}
61 62 </a>
62 63 </h{{cell.level}}>
63 64 </div>
64 65 {% endblock headingcell %}
65 66
66 67 {% block rawcell scoped %}
67 68 {{ cell.source }}
68 69 {% endblock rawcell %}
69 70
70 71 {% block unknowncell scoped %}
71 72 unknown type {{cell.type}}
72 73 {% endblock unknowncell %}
73 74
74 75
75 76 {% block pyout -%}
76 77 <div class="box-flex1 output_subarea output_pyout">
77 78 {% block data_priority scoped %}{{ super()}}{% endblock %}
78 79 </div>
79 80 {%- endblock pyout %}
80 81
81 82 {% block stream_stdout -%}
82 83 <div class="box-flex1 output_subarea output_stream output_stdout">
83 84 <pre>{{output.text |ansi2html}}</pre>
84 85 </div>
85 86 {%- endblock stream_stdout %}
86 87
87 88 {% block stream_stderr -%}
88 89 <div class="box-flex1 output_subarea output_stream output_stderr">
89 90 <pre>{{output.text |ansi2html}}</pre>
90 91 </div>
91 92 {%- endblock stream_stderr %}
92 93
93 94 {% block data_svg -%}
94 95 {{output.svg}}
95 96 {%- endblock data_svg %}
96 97
97 98
98 99 {% block data_html -%}
99 100 <div class="output_html rendered_html">
100 101 {{output.html}}
101 102 </div>
102 103 {%- endblock data_html %}
103 104
104 105 {% block data_png %}
105 106 <img src="data:image/png;base64,{{output.png}}"></img>
106 107 {%- endblock data_png %}
107 108
108 109
109 110 {% block data_jpg %}
110 111 <img src="data:image/jpeg;base64,{{output.jpeg}}"></img>
111 112 {%- endblock data_jpg %}
112 113
113 114
114 115 {% block data_latex %}
115 116 {{output.latex}}
116 117 {%- endblock data_latex %}
117 118
118 119 {% block pyerr -%}
119 120 <div class="box-flex1 output_subarea output_pyerr">
120 121 <pre>{{super()}}</pre>
121 122 </div>
122 123 {%- endblock pyerr %}
123 124
124 125 {%- block traceback_line %}
125 126 {{line| ansi2html}}
126 127 {%- endblock traceback_line %}
127 128
128 129
129 130 {%- block data_text %}
130 131 <pre>{{output.text | ansi2html}}</pre>
131 132 {%- endblock -%}
132 133
133 134
134 135 {%- block display_data scoped -%}
135 136 <div class="box-flex1 output_subarea output_display_data">
136 137 {{super()}}
137 138 </div>
138 139 {%- endblock display_data -%}
General Comments 0
You need to be logged in to leave comments. Login now