|
|
@ -35,12 +35,12 @@
|
|
|
|
<p [innerHTML]="post.htmlContent"></p>
|
|
|
|
<p [innerHTML]="post.htmlContent"></p>
|
|
|
|
</mat-card-content>
|
|
|
|
</mat-card-content>
|
|
|
|
<mat-card-actions>
|
|
|
|
<mat-card-actions>
|
|
|
|
<button mat-button>
|
|
|
|
<button mat-button (click)="voteUp(post)">
|
|
|
|
<mat-icon aria-hidden="false" color="primary" *ngIf="post.userVote == 'UPVOTE'">keyboard_arrow_up</mat-icon>
|
|
|
|
<mat-icon aria-hidden="false" color="primary" *ngIf="post.userVote == 'UPVOTE'">keyboard_arrow_up</mat-icon>
|
|
|
|
<mat-icon aria-hidden="false" *ngIf="!post.userVote || post.userVote == 'DOWNVOTE'">keyboard_arrow_up</mat-icon>
|
|
|
|
<mat-icon aria-hidden="false" *ngIf="!post.userVote || post.userVote == 'DOWNVOTE'">keyboard_arrow_up</mat-icon>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
{{post.upvotes}}
|
|
|
|
{{post.upvotes}}
|
|
|
|
<button mat-button>
|
|
|
|
<button mat-button (click)="voteDown(post)">
|
|
|
|
<mat-icon aria-hidden="false" color="primary" *ngIf="post.userVote == 'DOWNVOTE'">keyboard_arrow_down</mat-icon>
|
|
|
|
<mat-icon aria-hidden="false" color="primary" *ngIf="post.userVote == 'DOWNVOTE'">keyboard_arrow_down</mat-icon>
|
|
|
|
<mat-icon aria-hidden="false" *ngIf="!post.userVote || post.userVote == 'UPVOTE'">keyboard_arrow_down</mat-icon>
|
|
|
|
<mat-icon aria-hidden="false" *ngIf="!post.userVote || post.userVote == 'UPVOTE'">keyboard_arrow_down</mat-icon>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|