-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmmm-googlesheets.njk
35 lines (35 loc) · 1.21 KB
/
mmm-googlesheets.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<div class="wrapper">
{% if anyErrors %}
{% if paramErrors %}
{% for parameter, isError in errors %}
{% if isError %}
<div class="dimmed light small">Missing required parameter: {{parameter}}</div>
{% endif %}
{% endfor %}
{% elif runtimeErrors %}
<div class="dimmed light small">There was an error in the request: {{runtimeErrorMsg}}</div>
{% endif %}
{% elif loading %}
<div class="dimmed light small">{{ phrases.loading | safe }}</div>
{% else %}
<div class="table-wrapper">
<table class="sheets-table">
{% for row in sheetData %}
<tr class="sheets-table-row">
{% for cell in row %}
{% if cell.merge %}
<td class="small sheets-table-cell" style="{{cell.style}}" colspan="{{cell.merge_data.colspan}}" rowspan="{{cell.merge_data.rowspan}}"{>
{{cell.value}}
</td>
{% elif cell.display %}
<td class="small sheets-table-cell" style="{{cell.style}}">
{{cell.value}}
</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
{% endif %}
</div>