Skip to content
Snippets Groups Projects
Verified Commit 9ca9f785 authored by Hagen Dreßler's avatar Hagen Dreßler Committed by Lukas Maximilian Kimpel
Browse files

Fix html component and style sheet

parent 649ece7a
1 merge request!91Resolve "Follow-up from "Resolve "See read comments (participant)"""
Pipeline #13710 passed with stage
in 33 seconds
<mat-card *ngFor="let comment of comments">
<mat-card-header>
<mat-card-title>{{comment.subject}}</mat-card-title>
<mat-card-subtitle>
<span class="mat-caption">Submitted on {{ comment.creationTimestamp | date:'dd-MM-yyyy HH:mm:ss' }}</span>
</mat-card-subtitle>
</mat-card-header>
<mat-divider></mat-divider>
<mat-card-content>
<p>{{comment.body}}</p>
</mat-card-content>
<mat-divider></mat-divider>
<mat-card-actions *ngIf="userRole === userRoleTemp">
<button mat-icon-button *ngIf="comment.read" color="primary" matTooltip="Mark as read"
(click)="setRead(comment)">
<mat-icon>speaker_notes</mat-icon>
</button>
<button mat-icon-button *ngIf="!comment.read" color="warn" matTooltip="Mark as unread"
(click)="setRead(comment)">
<mat-icon>speaker_notes_off</mat-icon>
</button>
<button mat-icon-button color="warn" matTooltip="Delete comment"
(click)="delete(comment)">
<mat-icon>delete</mat-icon>
</button>
</mat-card-actions>
<mat-card-actions *ngIf="userRole !== userRoleTemp">
<mat-icon *ngIf="comment.read" color="primary" matTooltip="Comment was read">speaker_notes</mat-icon>
<mat-icon *ngIf="!comment.read" color="warn" matTooltip="Comment was not read">speaker_notes_off</mat-icon>
</mat-card-actions>
</mat-card>
<div fxLayout="row" fxLayoutGap="20px" fxLayoutAlign="center">
<div>
<mat-card *ngFor="let comment of comments">
<mat-card-header>
<mat-card-title>{{comment.subject}}</mat-card-title>
<mat-card-subtitle>
<span class="mat-caption">Submitted on {{ comment.creationTimestamp | date:'dd-MM-yyyy HH:mm:ss' }}</span>
</mat-card-subtitle>
</mat-card-header>
<mat-divider></mat-divider>
<mat-card-content>
<p>{{comment.body}}</p>
</mat-card-content>
<mat-divider></mat-divider>
<mat-card-actions *ngIf="userRole === userRoleTemp">
<button mat-icon-button *ngIf="comment.read" color="primary" matTooltip="Mark as read"
(click)="setRead(comment)">
<mat-icon>speaker_notes</mat-icon>
</button>
<button mat-icon-button *ngIf="!comment.read" color="warn" matTooltip="Mark as unread"
(click)="setRead(comment)">
<mat-icon>speaker_notes_off</mat-icon>
</button>
<button mat-icon-button color="warn" matTooltip="Delete comment"
(click)="delete(comment)">
<mat-icon>delete</mat-icon>
</button>
</mat-card-actions>
<mat-card-actions *ngIf="userRole !== userRoleTemp">
<mat-icon *ngIf="comment.read" color="primary" matTooltip="Comment was read">speaker_notes</mat-icon>
<mat-icon *ngIf="!comment.read" color="warn" matTooltip="Comment was not read">speaker_notes_off</mat-icon>
</mat-card-actions>
</mat-card>
</div>
</div>
mat-card {
width: 800px;
max-width: 100%;
margin: 10px;
}
......
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px" fxFill>
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px">
<div fxLayout="row" fxLayoutAlign="center">
<form>
<mat-form-field class="input-block">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment