diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-14 14:41:24 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-14 14:41:24 +0200 |
commit | 83e9886eedbbcd94292edd3aa135f7c357c9f67a (patch) | |
tree | 7ea2807755dc2e72393fe1baf7370de125fd1ae0 | |
parent | 2f398c19fd2ccd43a9de4478dfda0ecd7ad4c088 (diff) | |
download | PeerTube-83e9886eedbbcd94292edd3aa135f7c357c9f67a.tar.gz PeerTube-83e9886eedbbcd94292edd3aa135f7c357c9f67a.tar.zst PeerTube-83e9886eedbbcd94292edd3aa135f7c357c9f67a.zip |
Add link to the account page in comment
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment.component.html | 14 | ||||
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment.component.scss | 9 |
2 files changed, 16 insertions, 7 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 617d0fa41..002de57e4 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 | |||
@@ -20,10 +20,16 @@ | |||
20 | <div *ngIf="highlightedComment === true" class="highlighted-comment" i18n>Highlighted comment</div> | 20 | <div *ngIf="highlightedComment === true" class="highlighted-comment" i18n>Highlighted comment</div> |
21 | 21 | ||
22 | <div class="comment-account-date"> | 22 | <div class="comment-account-date"> |
23 | <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account"> | 23 | <div class="comment-account"> |
24 | <span class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }">{{ comment.account.displayName }}</span> | 24 | <a |
25 | <span class="comment-account-fid ml-1">{{ comment.by }}</span> | 25 | [routerLink]="[ '/accounts', comment.by ]" |
26 | </a> | 26 | class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }" |
27 | > | ||
28 | {{ comment.account.displayName }} | ||
29 | </a> | ||
30 | |||
31 | <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account-fid ml-1">{{ comment.by }}</a> | ||
32 | </div> | ||
27 | <a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]" | 33 | <a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]" |
28 | class="comment-date" [title]="comment.createdAt">{{ comment.createdAt | myFromNow }}</a> | 34 | class="comment-date" [title]="comment.createdAt">{{ comment.createdAt | myFromNow }}</a> |
29 | </div> | 35 | </div> |
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.scss b/client/src/app/videos/+video-watch/comment/video-comment.component.scss index 5df5e3ecf..7c4656931 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.component.scss +++ b/client/src/app/videos/+video-watch/comment/video-comment.component.scss | |||
@@ -63,13 +63,16 @@ | |||
63 | } | 63 | } |
64 | 64 | ||
65 | .comment-account { | 65 | .comment-account { |
66 | @include disable-default-a-behaviour; | ||
67 | |||
68 | word-break: break-all; | 66 | word-break: break-all; |
69 | color: var(--mainForegroundColor); | ||
70 | font-weight: 600; | 67 | font-weight: 600; |
71 | font-size: 90%; | 68 | font-size: 90%; |
72 | 69 | ||
70 | a { | ||
71 | @include disable-default-a-behaviour; | ||
72 | |||
73 | color: var(--mainForegroundColor); | ||
74 | } | ||
75 | |||
73 | .comment-account-fid { | 76 | .comment-account-fid { |
74 | opacity: .6; | 77 | opacity: .6; |
75 | } | 78 | } |