Add link to the account page in comment
authorChocobozzz <me@florianbigard.com>
Thu, 14 May 2020 12:41:24 +0000 (14:41 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 14 May 2020 12:41:24 +0000 (14:41 +0200)
client/src/app/videos/+video-watch/comment/video-comment.component.html
client/src/app/videos/+video-watch/comment/video-comment.component.scss

index 617d0fa4128f3d968843789f7e1bc278ad86e586..002de57e49ce97965f755c423e4349b6a1a5b6b8 100644 (file)
         <div *ngIf="highlightedComment === true" class="highlighted-comment" i18n>Highlighted comment</div>
 
         <div class="comment-account-date">
-          <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account">
-            <span class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }">{{ comment.account.displayName }}</span>
-            <span class="comment-account-fid ml-1">{{ comment.by }}</span>
-          </a>
+          <div class="comment-account">
+            <a
+              [routerLink]="[ '/accounts', comment.by ]"
+              class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }"
+            >
+              {{ comment.account.displayName }}
+            </a>
+
+            <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account-fid ml-1">{{ comment.by }}</a>
+          </div>
           <a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
              class="comment-date" [title]="comment.createdAt">{{ comment.createdAt | myFromNow }}</a>
         </div>
index 5df5e3ecf07645337274b0ba2ead9c272dc2b553..7c46569311100242b63933580807d4811c8426b9 100644 (file)
       }
 
       .comment-account {
-        @include disable-default-a-behaviour;
-
         word-break: break-all;
-        color: var(--mainForegroundColor);
         font-weight: 600;
         font-size: 90%;
 
+        a {
+          @include disable-default-a-behaviour;
+
+          color: var(--mainForegroundColor);
+        }
+
         .comment-account-fid {
           opacity: .6;
         }