mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
add thread modules zone
This commit is contained in:
commit
0b3cfeabed
4 changed files with 12 additions and 0 deletions
|
@ -4,4 +4,7 @@
|
|||
{{> UI.dynamic template=comment_item}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{#each threadModules}}
|
||||
{{> UI.dynamic template=getTemplate}}
|
||||
{{/each}}
|
||||
</template>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -185,6 +185,8 @@ heroModules = [];
|
|||
|
||||
footerModules = [];
|
||||
|
||||
threadModules = [];
|
||||
|
||||
postModules = [
|
||||
{
|
||||
template: 'postRank',
|
||||
|
|
|
@ -27,6 +27,7 @@ Package.onUse(function (api) {
|
|||
'viewParameters',
|
||||
'footerModules',
|
||||
'heroModules',
|
||||
'threadModules',
|
||||
'postModules',
|
||||
'postThumbnail',
|
||||
'postHeading',
|
||||
|
|
Loading…
Add table
Reference in a new issue