How/Where are the table rows being generated?


#1

I can’t for the life of me figure out where the table rows are being generated for the topic list.

topic-list.hbs generates the topic body

<tbody>
  {{each topic in topics itemView="topic-list-item"}}
</tbody>

and then topic-list-item.hbs generates the table data

<td class='main-link clearfix' colspan="{{titleColSpan}}">

But how/where exactly are the table rows being generated? I’m sure it’s staring me in the face and I just don’t see it.


(Kane York) #2

Nope, not staring you in the face. It’s right here:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/views/topic-list-item.js.es6#L6


#3

Ahh, I figured it had to be javascript, I just wasn’t familiar enough with the architecture to locate it. Many thanks!