Posts = postsToRender Which one do you call .html.erb?

posts = postsToRender Which one do you call .html.erb?
posts = postsToRender Which .html should I modify to edit?

{{conditional-loading-spinner condition=model.postStream.loadingAbove}}
          {{plugin-outlet name="topic-above-posts" args=(hash model=model)}}

          {{#unless model.postStream.loadingFilter}}
            {{scrolling-post-stream
              posts=postsToRender
              canCreatePost=model.details.can_create_post
              multiSelect=multiSelect
              selectedPostsCount=selectedPostsCount
              selectedQuery=selectedQuery
              gaps=model.postStream.gaps
              showFlags=(action "showPostFlags")
              editPost=(action "editPost")
              showHistory=(route-action "showHistory")
              showLogin=(route-action "showLogin")
              showRawEmail=(route-action "showRawEmail")

This is an Ember handlebars template referencing an Ember Component and nothing to do with Ruby at this point.

You might be best to start mugging up on how Ember works.

Ruby is rarely used to render content in Discourse, it’s mainly used to supply data and process changes to it.

Have you been through the plugin guides?

Also take a look at How can I make my own Discourse plugins?

5 Likes

Thank you
I found out.
topic.hbs(ex)posts=postsToRender) > topic.js.es6 > ??? .html.erb

I would like to study

1 Like