aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/comment/video-comment.component.html
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-16 16:21:42 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-12-17 09:45:02 +0100
commitb29bf61dbd518e5cef0b2f564ddc8f8a0657d089 (patch)
tree86d41fb765ea529095d757e292213156cef7d899 /client/src/app/videos/+video-watch/comment/video-comment.component.html
parentd68ebf0b4a40f88e53a78de6b3109a41466fa7c6 (diff)
downloadPeerTube-b29bf61dbd518e5cef0b2f564ddc8f8a0657d089.tar.gz
PeerTube-b29bf61dbd518e5cef0b2f564ddc8f8a0657d089.tar.zst
PeerTube-b29bf61dbd518e5cef0b2f564ddc8f8a0657d089.zip
Provide native links for description timestamps, and re-clickability for these
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.html8
1 files changed, 7 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 04bb1f7a2..df996533d 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
@@ -23,7 +23,12 @@
23 <a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]" 23 <a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
24 class="comment-date">{{ comment.createdAt | myFromNow }}</a> 24 class="comment-date">{{ comment.createdAt | myFromNow }}</a>
25 </div> 25 </div>
26 <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div> 26 <div
27 class="comment-html"
28 [innerHTML]="sanitizedCommentHTML"
29 (timestampClicked)="handleTimestampClicked($event)"
30 timestampRouteTransformer
31 ></div>
27 32
28 <div class="comment-actions"> 33 <div class="comment-actions">
29 <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply" i18n>Reply</div> 34 <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply" i18n>Reply</div>
@@ -65,6 +70,7 @@
65 (wantedToReply)="onWantToReply($event)" 70 (wantedToReply)="onWantToReply($event)"
66 (wantedToDelete)="onWantToDelete($event)" 71 (wantedToDelete)="onWantToDelete($event)"
67 (resetReply)="onResetReply()" 72 (resetReply)="onResetReply()"
73 (timestampClicked)="handleTimestampClicked($event)"
68 ></my-video-comment> 74 ></my-video-comment>
69 </div> 75 </div>
70 </div> 76 </div>