diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-04 17:25:26 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-04 17:25:26 +0100 |
commit | b58c69a1edcf63b6339576b5b431dbf7dea2c625 (patch) | |
tree | 98f4fb17351db9bd737aabfe56c1ddbcf8b29ad3 /client/src/app/app.module.ts | |
parent | 3154f38219ea6eb55532f38fee43d46821a020ee (diff) | |
download | PeerTube-b58c69a1edcf63b6339576b5b431dbf7dea2c625.tar.gz PeerTube-b58c69a1edcf63b6339576b5b431dbf7dea2c625.tar.zst PeerTube-b58c69a1edcf63b6339576b5b431dbf7dea2c625.zip |
Client: add titles to all pages
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r-- | client/src/app/app.module.ts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 939af6309..e40b66c5f 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -6,12 +6,16 @@ import { RouterModule } from '@angular/router'; | |||
6 | import { removeNgStyles, createNewHosts } from '@angularclass/hmr'; | 6 | import { removeNgStyles, createNewHosts } from '@angularclass/hmr'; |
7 | 7 | ||
8 | import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; | 8 | import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; |
9 | |||
9 | import { DropdownModule } from 'ng2-bootstrap/components/dropdown'; | 10 | import { DropdownModule } from 'ng2-bootstrap/components/dropdown'; |
10 | import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar'; | 11 | import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar'; |
11 | import { PaginationModule } from 'ng2-bootstrap/components/pagination'; | 12 | import { PaginationModule } from 'ng2-bootstrap/components/pagination'; |
12 | import { ModalModule } from 'ng2-bootstrap/components/modal'; | 13 | import { ModalModule } from 'ng2-bootstrap/components/modal'; |
14 | |||
13 | import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; | 15 | import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; |
14 | 16 | ||
17 | import { MetaConfig, MetaModule } from 'ng2-meta'; | ||
18 | |||
15 | /* | 19 | /* |
16 | * Platform and Environment providers/directives/pipes | 20 | * Platform and Environment providers/directives/pipes |
17 | */ | 21 | */ |
@@ -52,6 +56,15 @@ import { | |||
52 | WebTorrentService | 56 | WebTorrentService |
53 | } from './videos'; | 57 | } from './videos'; |
54 | 58 | ||
59 | const metaConfig: MetaConfig = { | ||
60 | //Append a title suffix such as a site name to all titles | ||
61 | //Defaults to false | ||
62 | useTitleSuffix: true, | ||
63 | defaults: { | ||
64 | title: 'PeerTube' | ||
65 | } | ||
66 | }; | ||
67 | |||
55 | // Application wide providers | 68 | // Application wide providers |
56 | const APP_PROVIDERS = [ | 69 | const APP_PROVIDERS = [ |
57 | AppState, | 70 | AppState, |
@@ -117,7 +130,10 @@ const APP_PROVIDERS = [ | |||
117 | ProgressbarModule, | 130 | ProgressbarModule, |
118 | PaginationModule, | 131 | PaginationModule, |
119 | ModalModule, | 132 | ModalModule, |
120 | FileUploadModule | 133 | |
134 | FileUploadModule, | ||
135 | |||
136 | MetaModule.forRoot(metaConfig) | ||
121 | ], | 137 | ], |
122 | providers: [ // expose our Services and Providers into Angular's dependency injection | 138 | providers: [ // expose our Services and Providers into Angular's dependency injection |
123 | ENV_PROVIDERS, | 139 | ENV_PROVIDERS, |