File tree 4 files changed +18
-1
lines changed
common/app/styles/partials 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 114
114
"allLanguages" : " All languages" ,
115
115
"confirmPlaylistDeletion" : " Are you sure you want to delete this playlist?" ,
116
116
"latestTracks" : " Latest tracks" ,
117
- "instrumental" : " Instrumental"
117
+ "instrumental" : " Instrumental" ,
118
+ "by" : " by"
118
119
},
119
120
"notify" : {
120
121
"play" : " Play" ,
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ angular.module('bmmApp')
39
39
$scope . zip = { } ;
40
40
$scope . zip . show = false ;
41
41
$scope . showFollow = false ;
42
+ $scope . authorName = null ;
43
+ $scope . showAuthor = false ;
42
44
$scope . follow = null ;
43
45
$scope . albums = [ ] ;
44
46
$scope . albumCount = 0 ;
@@ -231,6 +233,10 @@ angular.module('bmmApp')
231
233
$scope . zip . url = _api . addAuthorizationQueryString ( _api . getserverUrli ( ) + 'track_collection' + '/' + $routeParams . id + '/download' ) ;
232
234
$scope . zip . show = true ;
233
235
$scope . private = true ;
236
+ $scope . authorName = data . authorName ;
237
+ if ( $scope . authorName ) {
238
+ $scope . showAuthor = true ;
239
+ }
234
240
_api . userTrackCollectionGet ( $routeParams . id ) . done ( function ( data ) {
235
241
236
242
$scope . title = data . name ;
@@ -280,6 +286,10 @@ angular.module('bmmApp')
280
286
_api . playlistSharedGet ( $routeParams . id ) . done ( function ( data ) {
281
287
resolveTracks ( data . tracks ) ;
282
288
$scope . title = data . name ;
289
+ $scope . authorName = data . authorName ;
290
+ if ( $scope . authorName ) {
291
+ $scope . showAuthor = true ;
292
+ }
283
293
} ) ;
284
294
break ;
285
295
case 'podcast' :
Original file line number Diff line number Diff line change 4
4
</ div >
5
5
< h3 > < span ng-bind ="::title "> </ span > </ h3 >
6
6
</ div >
7
+ < span class ="playlist-author " ng-show ="showAuthor "> {{init.translation.playlist.by}} {{authorName}}</ span >
7
8
< span ng-bind ="tracks + ' ' + init.translation.playlist.tracks "> </ span >
8
9
< br ng-show ="tracks>0&&albumCount>0 ">
9
10
< span ng-hide ="albumCount<1 "> < span ng-bind ="albumCount + ' ' + init.translation.playlist.albums "> </ span > </ span >
Original file line number Diff line number Diff line change 260
260
height : 1.1em ;
261
261
}
262
262
263
+ .playlist-author {
264
+ display : block ;
265
+ margin-bottom : 4px ;
266
+ }
267
+
263
268
.actionButtons .actionButton {
264
269
margin-top : 1em ;
265
270
margin-right : .5em ;
You can’t perform that action at this time.
0 commit comments