aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos
diff options
context:
space:
mode:
authorKimsible <kimsible@users.noreply.github.com>2021-04-28 23:45:23 +0200
committerKimsible <kimsible@users.noreply.github.com>2021-05-05 11:48:25 +0200
commit718873964490d1aa31b0e99852002165637e4b9e (patch)
tree55b66793e382e901a4fbceb15fc2b5822e54e650 /client/src/app/+videos
parent69e076ddb0deda9e4120bab095d3369bb19fbd1e (diff)
downloadPeerTube-718873964490d1aa31b0e99852002165637e4b9e.tar.gz
PeerTube-718873964490d1aa31b0e99852002165637e4b9e.tar.zst
PeerTube-718873964490d1aa31b0e99852002165637e4b9e.zip
Make /a and /c default URLs for accounts and channels
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comment.component.html2
-rw-r--r--client/src/app/+videos/+video-watch/video-avatar-channel.component.html4
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.html6
-rw-r--r--client/src/app/+videos/video-list/overview/video-overview.component.html2
4 files changed, 7 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 d7ba40ef6..fc0d66ffd 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
@@ -11,7 +11,7 @@
11 11
12 <div class="comment-account-date"> 12 <div class="comment-account-date">
13 <div class="comment-account"> 13 <div class="comment-account">
14 <a [routerLink]="[ '/accounts', comment.by ]"> 14 <a [routerLink]="[ '/a', comment.by ]">
15 <span class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }"> 15 <span class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }">
16 {{ comment.account.displayName }} 16 {{ comment.account.displayName }}
17 </span> 17 </span>
diff --git a/client/src/app/+videos/+video-watch/video-avatar-channel.component.html b/client/src/app/+videos/+video-watch/video-avatar-channel.component.html
index 5f149cbd1..5a7221858 100644
--- a/client/src/app/+videos/+video-watch/video-avatar-channel.component.html
+++ b/client/src/app/+videos/+video-watch/video-avatar-channel.component.html
@@ -1,11 +1,11 @@
1<div class="wrapper" [ngClass]="{ 'generic-channel': genericChannel }"> 1<div class="wrapper" [ngClass]="{ 'generic-channel': genericChannel }">
2 <my-actor-avatar 2 <my-actor-avatar
3 class="channel" [channel]="video.channel" 3 class="channel" [channel]="video.channel"
4 [internalHref]="[ '/video-channels', video.byVideoChannel ]" [title]="channelLinkTitle" 4 [internalHref]="[ '/c', video.byVideoChannel ]" [title]="channelLinkTitle"
5 ></my-actor-avatar> 5 ></my-actor-avatar>
6 6
7 <my-actor-avatar 7 <my-actor-avatar
8 class="account" [account]="video.account" 8 class="account" [account]="video.account"
9 [internalHref]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle"> 9 [internalHref]="[ '/a', video.byAccount ]" [title]="accountLinkTitle">
10 </my-actor-avatar> 10 </my-actor-avatar>
11</div> 11</div>
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.html b/client/src/app/+videos/+video-watch/video-watch.component.html
index 4779602d2..bb41fba77 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.html
+++ b/client/src/app/+videos/+video-watch/video-watch.component.html
@@ -183,16 +183,16 @@
183 183
184 <div class="video-info-channel-left-links ml-1"> 184 <div class="video-info-channel-left-links ml-1">
185 <ng-container *ngIf="!isChannelDisplayNameGeneric()"> 185 <ng-container *ngIf="!isChannelDisplayNameGeneric()">
186 <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Channel page"> 186 <a [routerLink]="[ '/c', video.byVideoChannel ]" i18n-title title="Channel page">
187 {{ video.channel.displayName }} 187 {{ video.channel.displayName }}
188 </a> 188 </a>
189 <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Account page"> 189 <a [routerLink]="[ '/a', video.byAccount ]" i18n-title title="Account page">
190 <span i18n>By {{ video.byAccount }}</span> 190 <span i18n>By {{ video.byAccount }}</span>
191 </a> 191 </a>
192 </ng-container> 192 </ng-container>
193 193
194 <ng-container *ngIf="isChannelDisplayNameGeneric()"> 194 <ng-container *ngIf="isChannelDisplayNameGeneric()">
195 <a [routerLink]="[ '/accounts', video.byAccount ]" class="single-link" i18n-title title="Account page"> 195 <a [routerLink]="[ '/a', video.byAccount ]" class="single-link" i18n-title title="Account page">
196 <span i18n>{{ video.byAccount }}</span> 196 <span i18n>{{ video.byAccount }}</span>
197 </a> 197 </a>
198 </ng-container> 198 </ng-container>
diff --git a/client/src/app/+videos/video-list/overview/video-overview.component.html b/client/src/app/+videos/video-list/overview/video-overview.component.html
index e21bffb6c..d3c602aa5 100644
--- a/client/src/app/+videos/video-list/overview/video-overview.component.html
+++ b/client/src/app/+videos/video-list/overview/video-overview.component.html
@@ -32,7 +32,7 @@
32 32
33 <div class="section channel videos" *ngFor="let object of overview.channels"> 33 <div class="section channel videos" *ngFor="let object of overview.channels">
34 <div class="section-title"> 34 <div class="section-title">
35 <a [routerLink]="[ '/video-channels', buildVideoChannelBy(object) ]"> 35 <a [routerLink]="[ '/c', buildVideoChannelBy(object) ]">
36 <my-actor-avatar [channel]="buildVideoChannel(object)"></my-actor-avatar> 36 <my-actor-avatar [channel]="buildVideoChannel(object)"></my-actor-avatar>
37 37
38 <h2 class="section-title">{{ object.channel.displayName }}</h2> 38 <h2 class="section-title">{{ object.channel.displayName }}</h2>