From f3d1fc95dbeae14b220c816577d12de9f649c952 Mon Sep 17 00:00:00 2001
From: Hagen <hagen.dressler@mni.thm.de>
Date: Fri, 9 Mar 2018 10:13:24 +0100
Subject: [PATCH] Edit html template from component comment

---
 src/app/comment/comment.component.html | 34 ++++++++++++++------------
 1 file changed, 18 insertions(+), 16 deletions(-)

diff --git a/src/app/comment/comment.component.html b/src/app/comment/comment.component.html
index 8dda97685..ade843312 100644
--- a/src/app/comment/comment.component.html
+++ b/src/app/comment/comment.component.html
@@ -1,22 +1,24 @@
-<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10" *ngFor="let comment of comments">
-  <mat-card>
-    <mat-card-content>
-      <div class="comment-body">
-        <h3>{{comment.subject}}</h3><br>
+<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10">
+  <div *ngFor="let comment of comments">
+    <mat-card>
+      <mat-card-content>
+        <div class="comment-body">
+          <h3>{{comment.subject}}</h3><br>
 
-        {{comment.body}}
+          {{comment.body}}
 
-        <div class="trash-icon">
-          <i class="material-icons" (click)="delete(comment)">delete</i>
+          <div class="trash-icon">
+            <i class="material-icons" (click)="delete(comment)">delete</i>
+          </div>
         </div>
-      </div>
-    </mat-card-content>
-    <mat-card-footer>
-      <div class="date">
-        <i> Submitted on {{comment.creationTimestamp | date:'dd-MM-yyyy HH:mm:ss' : format}} </i>
-      </div>
-    </mat-card-footer>
-  </mat-card><br>
+      </mat-card-content>
+      <mat-card-footer>
+        <div class="date">
+          <i> Submitted on {{comment.creationTimestamp | date:'dd-MM-yyyy HH:mm:ss' : format}} </i>
+        </div>
+      </mat-card-footer>
+    </mat-card><br>
+  </div>
 </div>
 
 <button mat-raised-button color="primary" (click)="goBack()">Back</button>
-- 
GitLab