Table to list items or divs

Hello all. I am new to Discourse. I am trying to create a theme component to replace the table elements used (table, tbody, th, tr, td) with list items (ol/ul, li) or failing that just div tags.

I have so far managed to remove the table headings with handlebars and also some custom topic listing through the similar hook, however, the div content created is within the table. A brief example is below…

<script type='text/x-handlebars' data-template-name='list/topic-list-item.raw'> ... </script>

Does anyone know how to replace all use of tables in Discourse, preferably with ordered or unordered lists?

Out of curiosity, what is the purpose?

I want to replace the columns in the topic list (and suggested etc) to a single div.

I suppose not too different to replies in the topic page just not so feature heavy, just a snippet.

Take a look at the techniques used in themes like Fakebook:

1 Like