Commit 31b34a75ce85c36bba7f192e58614e8f4e328437
Committed by
Michel Felipe

1 parent
33544a8b
Exists in
master
and in
26 other branches
Display paragraph comments besides the article
Showing
6 changed files
with
33 additions
and
9 deletions
Show diff stats
src/plugins/comment_paragraph/allow-comment/allow-comment.component.ts
1 | 1 | import {Component, Input} from "ng-forward"; |
2 | +import {SideCommentsComponent} from "../side-comments/side-comments.component"; | |
2 | 3 | |
3 | 4 | @Component({ |
4 | 5 | selector: "comment-paragraph-plugin-allow-comment", |
5 | - templateUrl: "plugins/comment_paragraph/allow-comment/allow-comment.html" | |
6 | + templateUrl: "plugins/comment_paragraph/allow-comment/allow-comment.html", | |
7 | + directives: [SideCommentsComponent] | |
6 | 8 | }) |
7 | -export class AllowComment { | |
9 | +export class AllowCommentComponent { | |
8 | 10 | |
9 | 11 | @Input() content: string; |
10 | 12 | @Input() paragraphUuid: string; |
11 | 13 | @Input() article: noosfero.Article; |
12 | - | |
13 | - constructor() { | |
14 | - console.log("ALLOW COMMENT"); | |
15 | - } | |
16 | 14 | } | ... | ... |
src/plugins/comment_paragraph/allow-comment/allow-comment.html
1 | 1 | <div class="paragraph-content" ng-bind-html="ctrl.content"></div> |
2 | -<div class="actions"></div> | |
2 | +<div class="actions"> | |
3 | + <a href="#" popover-placement="right" popover-trigger="outsideClick" uib-popover-template="'plugins/comment_paragraph/allow-comment/popover.html'" ng-click="ctrl.loadComments()"><i class="fa fa-fw fa-comments"></i></a> | |
4 | +</div> | ... | ... |
src/plugins/comment_paragraph/allow-comment/allow-comment.scss
0 → 100644
src/plugins/comment_paragraph/allow-comment/popover.html
0 → 100644
... | ... | @@ -0,0 +1 @@ |
1 | +<comment-paragraph-side-comments></comment-paragraph-side-comments> | ... | ... |
src/plugins/comment_paragraph/index.ts
src/plugins/comment_paragraph/side-comments/side-comments.component.ts
0 → 100644