diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-19 10:38:24 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-19 10:48:44 +0100 |
commit | 1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5 (patch) | |
tree | 00c27b7e6a81dfc04a8cc86ba782df1e9d0c1db8 /client/src/app/videos/+video-watch/comment/video-comment.component.html | |
parent | 3bb6c52645af84832212c99fdec04143e4230180 (diff) | |
download | PeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.tar.gz PeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.tar.zst PeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.zip |
Improve comment highlighting
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment.component.html')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment.component.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.html b/client/src/app/videos/+video-watch/comment/video-comment.component.html index ec9a236d3..e3049e15b 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.component.html +++ b/client/src/app/videos/+video-watch/comment/video-comment.component.html | |||
@@ -2,10 +2,11 @@ | |||
2 | <img [src]="getAvatarUrl(comment.account)" alt="Avatar" /> | 2 | <img [src]="getAvatarUrl(comment.account)" alt="Avatar" /> |
3 | 3 | ||
4 | <div class="comment"> | 4 | <div class="comment"> |
5 | <span class="marked-comment" *ngIf="comment.marked">Marked comment</span> | 5 | <div *ngIf="highlightedComment === true" class="highlighted-comment">Highlighted comment</div> |
6 | |||
6 | <div class="comment-account-date"> | 7 | <div class="comment-account-date"> |
7 | <a target="_blank" [href]="comment.account.url" class="comment-account">{{ comment.by }}</a> | 8 | <a target="_blank" [href]="comment.account.url" class="comment-account">{{ comment.by }}</a> |
8 | <a [routerLink]="['/videos/watch', video.uuid, 'comment', comment.id]" class="comment-date">{{ comment.createdAt | myFromNow }}</a> | 9 | <a [routerLink]="['/videos/watch', video.uuid, { 'commentId': comment.id }]" class="comment-date">{{ comment.createdAt | myFromNow }}</a> |
9 | </div> | 10 | </div> |
10 | <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div> | 11 | <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div> |
11 | 12 | ||