Makes album ratio an option
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
<a href="" ng-click="$ctrl.openAlbumModal()">
|
||||
<div class="cover-container">
|
||||
<div class="cover">
|
||||
<img class="img-responsive img-rounded" alt="{{$ctrl.album.titleDisplay}}" ng-src="{{$ctrl.album.CoverURL}}"/>
|
||||
<div class="over-img-rating">
|
||||
<uib-rating ng-if="$ctrl.render" ng-model="$ctrl.album.Note" readonly="true"></uib-rating>
|
||||
</div>
|
||||
<div class="over-img-ref">{{$ctrl.album.ref}}</div>
|
||||
<div responsive-ratio="$ctrl.ratio" ng-if="$ctrl.ratio > 0">
|
||||
<img class="img-responsive img-rounded" alt="{{$ctrl.album.titleDisplay}}" ng-src="{{$ctrl.album.CoverURL}}"/>
|
||||
<div class="over-img-rating">
|
||||
<uib-rating ng-if="$ctrl.render" ng-model="$ctrl.album.Note" readonly="true"></uib-rating>
|
||||
</div>
|
||||
<div class="over-img-ref">{{$ctrl.album.ref}}</div>
|
||||
</div>
|
||||
<div ng-if="$ctrl.ratio <= 0">
|
||||
<img class="img-responsive img-rounded" alt="{{$ctrl.album.titleDisplay}}" ng-src="{{$ctrl.album.CoverURL}}"/>
|
||||
<div class="over-img-rating">
|
||||
<uib-rating ng-if="$ctrl.render" ng-model="$ctrl.album.Note" readonly="true"></uib-rating>
|
||||
</div>
|
||||
<div class="over-img-ref">{{$ctrl.album.ref}}</div>
|
||||
</div>
|
||||
<div class="album-ellipsis">
|
||||
<p>{{$ctrl.album.serieDisplay || '-'}}</p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
var album = angular.module('satbd.satellite.bar.components.album', [
|
||||
'satbd.satellite.bar.directives.responsive-ratio',
|
||||
'ui.bootstrap',
|
||||
'ngAnimate']);
|
||||
|
||||
@@ -34,7 +35,8 @@ album.component('album', {
|
||||
templateUrl: 'js/components/album/album.html',
|
||||
controller: AlbumCtrl,
|
||||
bindings: {
|
||||
id: '=albumId'
|
||||
id: '<albumId',
|
||||
ratio: '<'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h1 class="text-center"> Albums Récents </h1>
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2 album" ng-repeat="id in albumIDs">
|
||||
<album album-id="id"> </album>
|
||||
<album album-id="id" ratio="1.0"> </album>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row text-center" in-view="$inview&&loadMore()" ng-if="scrollMore">
|
||||
|
||||
Reference in New Issue
Block a user