diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-24 03:02:04 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-25 15:37:26 +0100 |
commit | ab398a05e9ffaacb8fc713bb2ba9717ac463b34c (patch) | |
tree | d73c6debfcc14c0dc05c681bb442e6f6fb6ce3a7 /client/src/app/+page-not-found/page-not-found.component.html | |
parent | 6939cbac48e0a9823b34577836480ae3c28186be (diff) | |
download | PeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.tar.gz PeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.tar.zst PeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.zip |
redirect to login on 401, display error variants in 404 component
Diffstat (limited to 'client/src/app/+page-not-found/page-not-found.component.html')
-rw-r--r-- | client/src/app/+page-not-found/page-not-found.component.html | 15 |
1 files changed, 12 insertions, 3 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 aa57b07e8..efd3cc9f9 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 | |||
@@ -1,23 +1,32 @@ | |||
1 | <div class="root"> | 1 | <div class="root"> |
2 | <div *ngIf="status === 404" class="box"> | 2 | <div *ngIf="status !== 403 && status !== 418" class="box"> |
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" i18n> |
7 | We couldn't find any ressource tied to the URL {{ pathname }} you were looking for. | 7 | We couldn't find any {{ getRessourceName() }} tied to the URL {{ pathname }} you were looking for. |
8 | </div> | 8 | </div> |
9 | 9 | ||
10 | <div class="text-muted mt-4"> | 10 | <div class="text-muted mt-4"> |
11 | <span i18n="Possible reasons preceding a list of reasons a `Not Found` error page may occur">Possible reasons:</span> | 11 | <span i18n="Possible reasons preceding a list of reasons a `Not Found` error page may occur">Possible reasons:</span> |
12 | 12 | ||
13 | <ul> | 13 | <ul> |
14 | <li i18n>The page may have been moved or deleted</li> | ||
15 | <li i18n>You may have used an outdated or broken link</li> | 14 | <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 i18n>You may have typed the address or URL incorrectly</li> | 16 | <li i18n>You may have typed the address or URL incorrectly</li> |
17 | </ul> | 17 | </ul> |
18 | </div> | 18 | </div> |
19 | </div> | 19 | </div> |
20 | 20 | ||
21 | <div *ngIf="status === 403" class="box"> | ||
22 | <strong>{{ status }}.</strong> | ||
23 | <span class="ml-1 text-muted" i18n>You are not authorized here.</span> | ||
24 | |||
25 | <div class="text mt-4" i18n> | ||
26 | You might need to check your account is allowed by the {{ getRessourceName() }} or instance owner. | ||
27 | </div> | ||
28 | </div> | ||
29 | |||
21 | <div *ngIf="status === 418" class="box"> | 30 | <div *ngIf="status === 418" class="box"> |
22 | <strong>{{ status }}.</strong> | 31 | <strong>{{ status }}.</strong> |
23 | <span class="ml-1 text-muted">I'm a teapot.</span> | 32 | <span class="ml-1 text-muted">I'm a teapot.</span> |