##// END OF EJS Templates
Added changes to understand alignment metadata for each cells.
damianavila -
Show More
@@ -0,0 +1,17 b''
1 {%- extends 'reveal_cells.tpl' -%}
2
3
4
5 {%- block any_cell scoped -%}
6 {%- if cell.metadata.align_type in ['Left'] -%}
7 {{ super() }}
8 {%- elif cell.metadata.align_type in ['center'] -%}
9 <div style="text-align:center">
10 {{ super() }}
11 </div>
12 {%- elif cell.metadata.align_type in ['right'] -%}
13 <div style="text-align:right">
14 {{ super() }}
15 </div>
16 {%- endif -%}
17 {%- endblock any_cell -%}
@@ -1,4 +1,4 b''
1 {%- extends 'reveal_cells.tpl' -%}
1 {%- extends 'align_reveal_cells.tpl' -%}
2 2
3 3
4 4
@@ -38,6 +38,7 b' class RevealHelpTransformer(ConfigurableTransformer):'
38 38 for i, cell in enumerate(worksheet.cells):
39 39
40 40 #Make sure the cell has slideshow metadata.
41 cell.metadata.align_type = cell.get('metadata', {}).get('slideshow', {}).get('align_type', 'Left')
41 42 cell.metadata.slide_type = cell.get('metadata', {}).get('slideshow', {}).get('slide_type', '-')
42 43
43 44 #Get the slide type. If type is start of subslide or slide,
General Comments 0
You need to be logged in to leave comments. Login now