diff options
Diffstat (limited to 'client/src/app/+video-channels/video-channel-about')
-rw-r--r-- | client/src/app/+video-channels/video-channel-about/video-channel-about.component.html | 8 | ||||
-rw-r--r-- | client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html index a4338121f..b7125ff71 100644 --- a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html +++ b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html | |||
@@ -1,20 +1,20 @@ | |||
1 | <div *ngIf="videoChannel" class="row"> | 1 | <div *ngIf="videoChannel" class="row"> |
2 | <div class="description col-md-6 col-sm-12"> | 2 | <div class="description col-md-6 col-sm-12"> |
3 | <div class="block"> | 3 | <div class="block"> |
4 | <div class="small-title">Description</div> | 4 | <div i18n class="small-title">Description</div> |
5 | <div class="content">{{ getVideoChannelDescription() }}</div> | 5 | <div class="content">{{ getVideoChannelDescription() }}</div> |
6 | </div> | 6 | </div> |
7 | 7 | ||
8 | <div class="block" *ngIf="videoChannel.support"> | 8 | <div class="block" *ngIf="videoChannel.support"> |
9 | <div class="small-title">Support this channel</div> | 9 | <div i18n class="small-title">Support this channel</div> |
10 | <div class="content">{{ videoChannel.support }}</div> | 10 | <div class="content">{{ videoChannel.support }}</div> |
11 | </div> | 11 | </div> |
12 | </div> | 12 | </div> |
13 | 13 | ||
14 | <div class="stats col-md-6 col-sm-12"> | 14 | <div class="stats col-md-6 col-sm-12"> |
15 | <div class="block"> | 15 | <div class="block"> |
16 | <div class="small-title">Stats</div> | 16 | <div i18n class="small-title">Stats</div> |
17 | <div class="content">Created {{ videoChannel.createdAt | date }}</div> | 17 | <div i18n class="content">Created {{ videoChannel.createdAt | date }}</div> |
18 | </div> | 18 | </div> |
19 | </div> | 19 | </div> |
20 | </div> \ No newline at end of file | 20 | </div> \ No newline at end of file |
diff --git a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts index 6f862718f..c5fd442c6 100644 --- a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts +++ b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts | |||
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core' | |||
2 | import { ActivatedRoute } from '@angular/router' | 2 | import { ActivatedRoute } from '@angular/router' |
3 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 3 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
4 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 4 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' |
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
5 | 6 | ||
6 | @Component({ | 7 | @Component({ |
7 | selector: 'my-video-channel-about', | 8 | selector: 'my-video-channel-about', |
@@ -12,7 +13,8 @@ export class VideoChannelAboutComponent implements OnInit { | |||
12 | videoChannel: VideoChannel | 13 | videoChannel: VideoChannel |
13 | 14 | ||
14 | constructor ( | 15 | constructor ( |
15 | protected route: ActivatedRoute, | 16 | private route: ActivatedRoute, |
17 | private i18n: I18n, | ||
16 | private videoChannelService: VideoChannelService | 18 | private videoChannelService: VideoChannelService |
17 | ) { } | 19 | ) { } |
18 | 20 | ||
@@ -25,6 +27,6 @@ export class VideoChannelAboutComponent implements OnInit { | |||
25 | getVideoChannelDescription () { | 27 | getVideoChannelDescription () { |
26 | if (this.videoChannel.description) return this.videoChannel.description | 28 | if (this.videoChannel.description) return this.videoChannel.description |
27 | 29 | ||
28 | return 'No description' | 30 | return this.i18n('No description') |
29 | } | 31 | } |
30 | } | 32 | } |