1
+ < ng-container *ngIf ="loading ">
2
+ < div class ="loading-app ">
3
+ < i class ="fa fa-circle-o-notch fa-spin fa-2x fa-fw "> </ i >
4
+ < span class ="sr-only "> Loading...</ span >
5
+ </ div >
6
+ </ ng-container >
7
+ < ng-container *ngIf ="feedVideos ">
8
+ < div [ngStyle] ="{'background-image': 'url(' + trendingFirst.bannerURL + ')'} " class ="video-list-featured ">
9
+ < div class ="video-item " [attr.data-index] ="0 ">
10
+ < div class ="video-item-info ">
11
+ < div *ngIf ="thumbnails " class ="video-item-image " [ngStyle] ="{'background-image': 'url(' + trendingFirst.video.img +')'} "> </ div >
12
+ < div class ="video-item-content ">
13
+ < p class ="video-item-title "> {{ trendingFirst.video.title }}</ p >
14
+ < p class ="video-item-autor "> by < span > {{ trendingFirst.video.channelTitle }}</ span > </ p >
15
+ < div *ngIf ="trendingFirst.video.id?.length > 0 " class ="video-item-details ">
16
+ < p class ="stats-views "> < span class ="fa fa-eye "> </ span > {{ trendingFirst.video.stats.views | number:'1.0' }}</ p >
17
+ < p class ="stats-likes "> < span class ="fa fa-thumbs-up "> </ span > {{ trendingFirst.video.stats.likes | number:'1.0' }}</ p >
18
+ < p class ="stats-dislikes "> < span class ="fa fa-thumbs-down "> </ span > {{ trendingFirst.video.stats.dislikes | number:'1.0' }}</ p >
19
+ </ div >
20
+ </ div >
21
+ </ div >
22
+ < div class ="video-item-settings-featured ">
23
+ < button class ="btn btn-primary btn-round " (click) ="onClickVideo($event, 0, 3) ">
24
+ < span class ="fa fa-play "> </ span > Play video
25
+ </ button >
26
+ < button class ="btn btn-default btn-outline btn-round " (click) ="addPlaylistItem(0, 0) ">
27
+ < span class ="fa fa-plus "> </ span > Add to playlist
28
+ </ button >
29
+ < button class ="btn copy-link " (click) ="onCopyVideoItemLink(0, 0) ">
30
+ < span class ="fa fa-share-alt "> </ span > Copy link
31
+ </ button >
32
+ </ div >
33
+ </ div >
34
+ <!--
35
+ <p>{{ trendingFirst.stats.subscribers | number:'1.0' }}</p>
36
+ <p>{{ trendingFirst.stats.views | number:'1.0' }}</p>
37
+ <p>{{ trendingFirst.stats.videoCount | number:'1.0' }}</p>-->
38
+ </ div >
39
+ </ ng-container >
40
+ < div class ="categories " *ngIf ="categories ">
41
+ < ng-container *ngFor ="let category of categories.items ">
42
+ < div *ngIf ="category.id === currentCategory ">
43
+ < button type ="button " (click) ="resetCategories() " class ="trigger back ">
44
+ < span class ="tooltip "> Go back</ span >
45
+ < i class ="material-icons "> close</ i >
46
+ </ button >
47
+ </ div >
48
+ < div *ngIf ="category.snippet.assignable && categoriesBlocked.indexOf(category.id) === -1 && category.id !== currentCategory " id ="category-{{category.id}} ">
49
+ <!-- (click)="getCategoriesVideos(category.id)" -->
50
+ < a routerLink ="/category/{{category.id}} " class ="trigger ">
51
+ < span class ="tooltip "> {{category.snippet.title}}</ span >
52
+ < ng-container *ngIf ="category.snippet.title === 'Film & Animation' ">
53
+ < i class ="material-icons "> movie</ i >
54
+ </ ng-container >
55
+ < ng-container *ngIf ="category.snippet.title === 'Autos & Vehicles' ">
56
+ < i class ="material-icons "> directions_car</ i >
57
+ </ ng-container >
58
+ < ng-container *ngIf ="category.snippet.title === 'Music' ">
59
+ < i class ="material-icons "> library_music</ i >
60
+ </ ng-container >
61
+ < ng-container *ngIf ="category.snippet.title === 'Pets & Animals' ">
62
+ < i class ="material-icons "> pets</ i >
63
+ </ ng-container >
64
+ < ng-container *ngIf ="category.snippet.title === 'Sports' ">
65
+ < i class ="material-icons "> pool</ i >
66
+ </ ng-container >
67
+ < ng-container *ngIf ="category.snippet.title === 'Gaming' ">
68
+ < i class ="material-icons "> videogame_asset</ i >
69
+ </ ng-container >
70
+ < ng-container *ngIf ="category.snippet.title === 'Comedy' ">
71
+ < i class ="material-icons "> insert_emoticon</ i >
72
+ </ ng-container >
73
+ < ng-container *ngIf ="category.snippet.title === 'Entertainment' ">
74
+ < i class ="material-icons "> local_movies</ i >
75
+ </ ng-container >
76
+ < ng-container *ngIf ="category.snippet.title === 'Howto & Style' ">
77
+ < i class ="material-icons "> directions_bike</ i >
78
+ </ ng-container >
79
+ < ng-container *ngIf ="category.snippet.title === 'Science & Technology' ">
80
+ < i class ="material-icons "> wifi</ i >
81
+ </ ng-container >
82
+ </ a >
83
+ </ div >
84
+ </ ng-container >
85
+ </ div >
86
+ < div id ="feed-video-list " class ="video-list " [ngClass] ="{'grid-list': !listGrid } ">
87
+ < div *ngFor ="let feedVideo of feedVideos; let i = index " [ngClass] ="{'hidden-thumbnails': !thumbnails } " [attr.data-index] ="i " class ="video-item ">
88
+ < div class ="video-item-info ">
89
+ < div *ngIf ="thumbnails " class ="video-item-image " [ngStyle] ="{'background-image': 'url(' + feedVideo.snippet.thumbnails.medium.url +')'} "> </ div >
90
+ < div class ="video-item-content ">
91
+ < p class ="video-item-title "> {{ feedVideo.snippet.title }}</ p >
92
+ < p class ="video-item-autor "> by < span > {{ feedVideo.snippet.channelTitle }}</ span > </ p >
93
+ < div class ="video-item-details " *ngIf ="feedVideo.id?.length > 0 ">
94
+ < p class ="stats-views "> < span class ="fa fa-eye "> </ span > {{ feedVideo.statistics.viewCount | number:'1.0' }}</ p >
95
+ < p class ="stats-likes "> < span class ="fa fa-thumbs-up "> </ span > {{ feedVideo.statistics.likeCount | number:'1.0' }}</ p >
96
+ < p class ="stats-dislikes "> < span class ="fa fa-thumbs-down "> </ span > {{ feedVideo.statistics.dislikeCount | number:'1.0' }}</ p >
97
+ </ div >
98
+ </ div >
99
+ </ div >
100
+ < div class ="video-item-settings ">
101
+ < button class ="video-item-play " (click) ="onClickVideo($event, i, 3) ">
102
+ < span class ="fa fa-play "> </ span >
103
+ </ button >
104
+ < button class ="video-item-play " (click) ="onCopyVideoItemLink(i, 0) ">
105
+ < span class ="fa fa-share-alt "> </ span >
106
+ </ button >
107
+ < button class ="video-item-add " (click) ="addPlaylistItem(i, 0) ">
108
+ < span class ="fa fa-plus "> </ span >
109
+ </ button >
110
+ </ div >
111
+ </ div >
112
+ </ div >
0 commit comments