fixes+improvements
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
<div mat-line>
|
||||
<small>
|
||||
<a *ngIf="comment.metadata && comment.metadata.vote" href="javascript:" (click)="voteUp(comment.id)"
|
||||
matTooltip="{{'vote.up' | i18n}}">
|
||||
<mat-icon inline="true">expand_less</mat-icon>
|
||||
</a>
|
||||
<mat-icon *ngIf="!comment.metadata || !comment.metadata.vote" inline="true"> </mat-icon>
|
||||
{{'comment.author' | i18n}}<a routerLink="/u/{{comment.author}}">{{comment.author}}</a>
|
||||
<a routerLink="/c/{{comment.id}}" matTooltip="{{comment.created | datef:'LLLL'}}">{{comment.created
|
||||
| datef}}</a>
|
||||
{{'comment.author' | i18n}}<a routerLink="/u/{{comment.author}}">{{comment.author}}</a>
|
||||
|
||||
<a *ngIf="comment.metadata && comment.metadata.vote" href="javascript:" (click)="voteUp(comment.id)"
|
||||
matTooltip="{{'vote.up' | i18n}}">
|
||||
<mat-icon inline="true">thumb_up</mat-icon>
|
||||
</a>
|
||||
<span *ngIf="comment.metadata && comment.metadata.vote"> </span>
|
||||
<a *ngIf="comment.metadata && comment.metadata.downvote" href="javascript:" (click)="voteDown(comment.id)"
|
||||
matTooltip="{{'vote.down' | i18n}}">
|
||||
<mat-icon inline="true">remove</mat-icon>
|
||||
<mat-icon inline="true">thumb_down</mat-icon>
|
||||
</a>
|
||||
</small>
|
||||
</div>
|
||||
@@ -27,6 +28,10 @@
|
||||
<a *ngIf="comment.metadata.unvote" href="javascript:" (click)="voteDown()">
|
||||
{{'comment.unvote' | i18n}}
|
||||
</a>
|
||||
<span *ngIf="moderator">|</span>
|
||||
<a *ngIf="moderator" href="javascript:" (click)="deleteComment(comment)">
|
||||
{{'comment.delete' | i18n}}
|
||||
</a>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user