aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+page-not-found/page-not-found.component.html15
-rw-r--r--client/src/app/+page-not-found/page-not-found.component.ts9
2 files changed, 10 insertions, 14 deletions
diff --git a/client/src/app/+page-not-found/page-not-found.component.html b/client/src/app/+page-not-found/page-not-found.component.html
index efd3cc9f9..1e25e4495 100644
--- a/client/src/app/+page-not-found/page-not-found.component.html
+++ b/client/src/app/+page-not-found/page-not-found.component.html
@@ -3,8 +3,9 @@
3 <strong>{{ status }}.</strong> 3 <strong>{{ status }}.</strong>
4 <span class="ml-1 text-muted" i18n>That's an error.</span> 4 <span class="ml-1 text-muted" i18n>That's an error.</span>
5 5
6 <div class="text mt-4" i18n> 6 <div class="text mt-4">
7 We couldn't find any {{ getRessourceName() }} tied to the URL {{ pathname }} you were looking for. 7 <ng-container *ngIf="type === 'video'" i18n>We couldn't find any video tied to the URL {{ pathname }} you were looking for.</ng-container>
8 <ng-container *ngIf="type !== 'video'" i18n>We couldn't find any resource tied to the URL {{ pathname }} you were looking for.</ng-container>
8 </div> 9 </div>
9 10
10 <div class="text-muted mt-4"> 11 <div class="text-muted mt-4">
@@ -12,7 +13,10 @@
12 13
13 <ul> 14 <ul>
14 <li i18n>You may have used an outdated or broken link</li> 15 <li i18n>You may have used an outdated or broken link</li>
15 <li i18n>The {{ getRessourceName() }} may have been moved or deleted</li> 16 <li>
17 <ng-container *ngIf="type === 'video'" i18n>The video may have been moved or deleted</ng-container>
18 <ng-container *ngIf="type !== 'video'" i18n>The resource may have been moved or deleted</ng-container>
19 </li>
16 <li i18n>You may have typed the address or URL incorrectly</li> 20 <li i18n>You may have typed the address or URL incorrectly</li>
17 </ul> 21 </ul>
18 </div> 22 </div>
@@ -22,8 +26,9 @@
22 <strong>{{ status }}.</strong> 26 <strong>{{ status }}.</strong>
23 <span class="ml-1 text-muted" i18n>You are not authorized here.</span> 27 <span class="ml-1 text-muted" i18n>You are not authorized here.</span>
24 28
25 <div class="text mt-4" i18n> 29 <div class="text mt-4">
26 You might need to check your account is allowed by the {{ getRessourceName() }} or instance owner. 30 <ng-container *ngIf="type === 'video'" i18n>You might need to check your account is allowed by the video or instance owner.</ng-container>
31 <ng-container *ngIf="type !== 'video'" i18n>You might need to check your account is allowed by the resource or instance owner.</ng-container>
27 </div> 32 </div>
28 </div> 33 </div>
29 34
diff --git a/client/src/app/+page-not-found/page-not-found.component.ts b/client/src/app/+page-not-found/page-not-found.component.ts
index 9302201ea..94b4c8d27 100644
--- a/client/src/app/+page-not-found/page-not-found.component.ts
+++ b/client/src/app/+page-not-found/page-not-found.component.ts
@@ -32,15 +32,6 @@ export class PageNotFoundComponent implements OnInit {
32 return window.location.pathname 32 return window.location.pathname
33 } 33 }
34 34
35 getRessourceName () {
36 switch (this.type) {
37 case 'video':
38 return $localize`video`
39 default:
40 return $localize`ressource`
41 }
42 }
43
44 getMascotName () { 35 getMascotName () {
45 switch (this.status) { 36 switch (this.status) {
46 case HttpStatusCode.I_AM_A_TEAPOT_418: 37 case HttpStatusCode.I_AM_A_TEAPOT_418: