add thread modules zone

This commit is contained in:
Sacha Greif 2015-01-20 11:42:03 +09:00
commit 0b3cfeabed
4 changed files with 12 additions and 0 deletions

View file

@ -4,4 +4,7 @@
{{> UI.dynamic template=comment_item}}
{{/each}}
</ul>
{{#each threadModules}}
{{> UI.dynamic template=getTemplate}}
{{/each}}
</template>

View file

@ -10,6 +10,12 @@ Template[getTemplate('comment_list')].helpers({
var post = this;
var comments = Comments.find({postId: post._id, parentCommentId: null}, {sort: {score: -1, postedAt: -1}});
return comments;
},
threadModules: function () {
return threadModules;
},
getTemplate: function () {
return getTemplate(this.template);
}
});

View file

@ -185,6 +185,8 @@ heroModules = [];
footerModules = [];
threadModules = [];
postModules = [
{
template: 'postRank',

View file

@ -27,6 +27,7 @@ Package.onUse(function (api) {
'viewParameters',
'footerModules',
'heroModules',
'threadModules',
'postModules',
'postThumbnail',
'postHeading',