Makes album a component.
Should not be a directive, but a simple component
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
<a href="" ng-click="openAlbumModal()">
|
||||
<div class="cover-container">
|
||||
<div class="cover">
|
||||
<img class="img-responsive img-rounded" alt="{{album.titleDisplay}}" ng-src="{{album.CoverURL}}"/>
|
||||
<div class="over-img-rating">
|
||||
<uib-rating ng-if="render" ng-model="album.Note" readonly="true"></uib-rating>
|
||||
</div>
|
||||
<div class="over-img-ref">{{album.ref}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="album-ellipsis">
|
||||
<p>{{album.serieDisplay || '-'}}</p>
|
||||
<p>{{album.titleDisplay}}</p>
|
||||
</div>
|
||||
</a>
|
||||
@@ -6,7 +6,7 @@ responsiveRatio.directive('responsiveRatio', function() {
|
||||
scope: {
|
||||
responsiveRatio: '<responsiveRatio'
|
||||
},
|
||||
templateUrl: 'js/directives/responsive-ratio.html',
|
||||
templateUrl: 'js/directives/responsive-ratio/responsive-ratio.html',
|
||||
restrict: 'A',
|
||||
transclude: true,
|
||||
controller: 'ResponsiveRatioCtrl'
|
||||
Reference in New Issue
Block a user