mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use to_css_class for table cell column classes
This ensures that columns with spaces in the name will still generate usable CSS class names. Refs #209
This commit is contained in:
parent
136a70d887
commit
dfb87d012c
2 changed files with 7 additions and 7 deletions
|
|
@ -20,7 +20,7 @@
|
|||
{% for row in display_rows %}
|
||||
<tr>
|
||||
{% for cell in row %}
|
||||
<td class="col-{{ cell.column|lower }}">{{ cell.value }}</td>
|
||||
<td class="col-{{ cell.column|to_css_class }}">{{ cell.value }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue