From 246f026b815ac1d2563b7af2cd542eff12104efc Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 11 May 2016 11:44:17 -0300 Subject: [PATCH] Do not show discussion header in regular articles --- src/plugins/comment_paragraph/hotspot/article-content/article-content.component.ts | 4 ++++ src/plugins/comment_paragraph/hotspot/article-content/article-content.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/comment_paragraph/hotspot/article-content/article-content.component.ts b/src/plugins/comment_paragraph/hotspot/article-content/article-content.component.ts index 2230fb3..2feffec 100644 --- a/src/plugins/comment_paragraph/hotspot/article-content/article-content.component.ts +++ b/src/plugins/comment_paragraph/hotspot/article-content/article-content.component.ts @@ -9,4 +9,8 @@ import {Hotspot} from "../../../../app/hotspot/hotspot.decorator"; export class CommentParagraphArticleContentHotspotComponent { @Input() article: noosfero.Article; + + isDiscussion() { + return this.article.type === "CommentParagraphPlugin::Discussion"; + } } diff --git a/src/plugins/comment_paragraph/hotspot/article-content/article-content.html b/src/plugins/comment_paragraph/hotspot/article-content/article-content.html index 810f9b3..936ae69 100644 --- a/src/plugins/comment_paragraph/hotspot/article-content/article-content.html +++ b/src/plugins/comment_paragraph/hotspot/article-content/article-content.html @@ -1,4 +1,4 @@ -
+
{{"comment-paragraph-plugin.discussion.header" | translate}} {{"comment-paragraph-plugin.discussion.editor.start_date.label" | translate}} -- libgit2 0.21.2