mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +00:00
23 lines
556 B
Handlebars
23 lines
556 B
Handlebars
{{#comment/comment-stream
|
|
comments=comments
|
|
commentTypes=commentTypes
|
|
updateCommentInStream=(action "handleStreamAction" streamActions.modify)
|
|
deleteCommentFromStream=(action "handleStreamAction" streamActions.destroy)
|
|
addCommentToStream=(action "handleStreamAction" streamActions.add)
|
|
as |stream|
|
|
}}
|
|
|
|
{{stream.header}}
|
|
|
|
{{#stream.new}}
|
|
+ Add a comment...
|
|
{{/stream.new}}
|
|
|
|
{{#each stream.comments as |comment|}}
|
|
{{#stream.item comment=comment}}
|
|
{{comment.text}}
|
|
{{/stream.item}}
|
|
{{/each}}
|
|
|
|
{{/comment/comment-stream}}
|