File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
src/Templates/default/html
tests/fixtures/expected/blocks/nodes Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ <div class =" table-wrapper" >
2
+ <table {% if tableNode .classes %} class =" {{ tableNode .classesString }}" {% endif %}>
3
+ {% if tableHeaderRows is not empty %}
4
+ <thead >
5
+ {% for tableHeaderRow in tableHeaderRows %}
6
+ <tr >
7
+ {% for column in tableHeaderRow .columns %}
8
+ <th {% if column .colspan > 1 %} colspan =" {{ column .colspan }}" {% endif %}>{{ column .render | raw }}</th >
9
+ {% endfor %}
10
+ </tr >
11
+ {% endfor %}
12
+ </thead >
13
+ {% endif %}
14
+ <tbody >
15
+ {% for tableRow in tableRows %}
16
+ <tr >
17
+ {% for column in tableRow .columns %}
18
+ <td {% if column .colSpan > 1 %} colspan =" {{ column .colSpan }}" {% endif %}{% if column .rowSpan > 1 %} rowspan =" {{ column .rowSpan }}" {% endif %}>{{ column .render | raw }}</td >
19
+ {% endfor %}
20
+ </tr >
21
+ {% endfor %}
22
+ </tbody >
23
+ </table >
24
+ </div >
Original file line number Diff line number Diff line change 1
1
< p > Simple table with head:</ p >
2
2
3
+ < div class ="table-wrapper ">
3
4
< table >
4
5
< thead >
5
6
< tr >
21
22
</ tr >
22
23
</ tbody >
23
24
</ table >
25
+ </ div >
24
26
25
27
< p > Simple table headless:</ p >
26
28
29
+ < div class ="table-wrapper ">
27
30
< table >
28
31
< tbody >
29
32
< tr >
38
41
</ tr >
39
42
</ tbody >
40
43
</ table >
44
+ </ div >
41
45
42
46
< p > Grid table:</ p >
43
47
48
+ < div class ="table-wrapper ">
44
49
< table >
45
50
< tbody >
46
51
< tr >
58
63
</ tr >
59
64
</ tbody >
60
65
</ table >
66
+ </ div >
61
67
62
68
< p > Grid table with head:</ p >
63
69
70
+ < div class ="table-wrapper ">
64
71
< table >
65
72
< thead >
66
73
< tr >
80
87
</ tr >
81
88
</ tbody >
82
89
</ table >
90
+ </ div >
83
91
84
92
< p > Grid table with head and multi-line cells:</ p >
85
93
94
+ < div class ="table-wrapper ">
86
95
< table >
87
96
< thead >
88
97
< tr >
110
119
</ tr >
111
120
</ tbody >
112
121
</ table >
122
+ </ div >
You can’t perform that action at this time.
0 commit comments