gallery update: gallery-item component, style refactoring

This commit is contained in:
tmshv committed 2016-02-22 00:00:04 +03:00
1 parent 302bf86f0b
commit 477b9916f2
7 files changed
+188 -172

No files matched your search

@@ -0,0 +1,9 @@
<div class="gallery-item">
<h3>
<a href="{{$ctrl.record.url}}">{{$ctrl.record.title}}</a>
</h3>
<a href="{{$ctrl.record.url}}" class="invisible">
<img ng-src="{{$ctrl.record.preview_url}}" alt="{{$ctrl.record.title}}"/>
</a>
<p>{{$ctrl.record.course}}</p>
</div>
+1 -7
View File
@@ -2,13 +2,7 @@
<div class="album-collection" ng-repeat="period in years">
<h2 class="album-collection__title">{{period.year}}</h2>
<div class="album-collection__body">
<div class="gallery-album" ng-repeat="album in period.albums">
<h3><a href="{{album.url}}">{{album.title}}</a></h3>
<a href="{{album.url}}" class="invisible">
<img ng-src="{{album.preview_url}}" alt="{{album.title}}"/>
</a>
<p>{{album.course}}</p>
</div>
<gallery-item ng-repeat="album in period.albums" record="album"></gallery-item>
</div>
</div>
</div>