Makes album a component.

Should not be a directive, but a simple component
This commit is contained in:
2016-02-15 16:13:19 +01:00
parent f720850533
commit 5f8900acbb
9 changed files with 66 additions and 68 deletions

View File

@@ -0,0 +1,15 @@
<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>
</div>
<div class="album-ellipsis">
<p>{{$ctrl.album.serieDisplay || '-'}}</p>
<p>{{$ctrl.album.titleDisplay}}</p>
</div>
</a>