40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
<% if tracks.count == 1 %>
|
|
<table class="w50">
|
|
<% else %>
|
|
<table class="w100">
|
|
<% end %>
|
|
<% tracks.each_with_index do |track, index| %>
|
|
<% if index % 2 == 0 %>
|
|
<tr><td height="15px;"> </td></tr>
|
|
<tr>
|
|
<% end %>
|
|
|
|
<td>
|
|
<div class="avatar-small m0">
|
|
<a user-id="<%= track.musician.id %>" profileaction="musician" hoveraction="musician">
|
|
<% unless track.musician.photo_url.blank? %>
|
|
<%= image_tag "#{track.musician.photo_url}", {:alt => ""} %>
|
|
<% else %>
|
|
<%= image_tag "shared/avatar_generic.png", {:alt => ""} %>
|
|
<% end %>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div user-id="<%= track.musician.id %>" profileaction="musician" hoveraction="musician" class="lightgrey f15 ml10"><%= track.musician.name %></div>
|
|
</td>
|
|
<td class="p10">
|
|
<div class="ml10 w100">
|
|
<% track.instrument_ids.each do |instrument| %>
|
|
<%= image_tag "content/icon_instrument_#{instrument.tr(" ", "_")}45.png", {:width => 32, :alt => "", :title => "#{instrument}"} %>
|
|
<% end %>
|
|
</div>
|
|
</td>
|
|
<% if index % 2 == 0 %>
|
|
<td width="5%"></td>
|
|
<% end %>
|
|
<% if index % 2 > 0 %>
|
|
</tr>
|
|
<% end %>
|
|
<% end %>
|
|
</table> |