Rails BeatDB draft
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<h1 class="artist"><%= @artist.name %></h1>
|
||||
<% @artist.albums.each do |album| %>
|
||||
<% if album.releases.length > 0 %>
|
||||
<% unless album.releases.empty? %>
|
||||
<div class="album">
|
||||
<div class="pic"></div>
|
||||
<h3 class="name"><%= album.name %> (<%= album.year %>)</h3>
|
||||
<h3 class="name"><%= album.name %> <%= (album.year ? album.year : '') %></h3>
|
||||
<%
|
||||
releases = album.releases
|
||||
first_release = releases.first
|
||||
@@ -13,7 +13,7 @@
|
||||
<li>
|
||||
<span class="play"></span>
|
||||
<span class="track-name"><%= track.name %></span>
|
||||
<span class="duration"><%= track.length %></span>
|
||||
<span class="duration"><%= track.length.toTime %></span>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user