diff options
author | jonathanraes <jonathanraes@users.noreply.github.com> | 2018-02-18 09:57:26 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-18 09:57:26 +0100 |
commit | d5b53822ae7e1660cebe3a35be5ce76ea73dc1b9 (patch) | |
tree | 143c59398130bf8be2e974ca20eaff980b7242d2 /client/src/app/videos/+video-watch/comment/video-comment.component.html | |
parent | 16f16570978bc57bbe14524e6d0cc27260191bfd (diff) | |
download | PeerTube-d5b53822ae7e1660cebe3a35be5ce76ea73dc1b9.tar.gz PeerTube-d5b53822ae7e1660cebe3a35be5ce76ea73dc1b9.tar.zst PeerTube-d5b53822ae7e1660cebe3a35be5ce76ea73dc1b9.zip |
Issue #168: youtube-like marking of comments (#297)
* youtube-like marking of comments
uses GET parameters to mark comments similar to youtube
* place link to comment in 'comment-date'
* Use a routes to highight a comment
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 | 3 |
1 files changed, 2 insertions, 1 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 1d325aff9..ec9a236d3 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,9 +2,10 @@ | |||
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 class="comment-account-date"> | 6 | <div class="comment-account-date"> |
6 | <a target="_blank" [href]="comment.account.url" class="comment-account">{{ comment.by }}</a> | 7 | <a target="_blank" [href]="comment.account.url" class="comment-account">{{ comment.by }}</a> |
7 | <div class="comment-date">{{ comment.createdAt | myFromNow }}</div> | 8 | <a [routerLink]="['/videos/watch', video.uuid, 'comment', comment.id]" class="comment-date">{{ comment.createdAt | myFromNow }}</a> |
8 | </div> | 9 | </div> |
9 | <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div> | 10 | <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div> |
10 | 11 | ||