<% content_for :title do %><%= t('music_year_in_reviews.show.top_albums.title', year: params[:id]) %><% end %> <% if @albums.none? %>

<%= t('music_year_in_reviews.show.top_albums.empty_collection') %>

<% else %> <% @albums.each do |album| %> <% end %>
<%= t('general.position') %> <%= t('music.general.music_artist.short') %> <%= t('general.name') %> <%= t('music_year_in_reviews.show.top_track_positions_sum')%> <%= t('music_year_in_reviews.show.top_songs.short_title') %>
<%= album['position'] %> <%= link_to album['artist_name'], "#{Volontariat::HOSTS[Rails.env.to_s.to_sym]}/music/artists/#{album['artist_id']}" %> <%= link_to album['release_name'], "#{Volontariat::HOSTS[Rails.env.to_s.to_sym]}/music/releases/#{album['release_id']}" %> <%= album['top_track_positions_sum'] %> <%= raw(album['top_tracks'].map do |t| "#{t['position']}. " + link_to(t['track_name'], "#{Volontariat::HOSTS[Rails.env.to_s.to_sym]}/music/tracks/#{t['track_id']}") end.join(', ')) %>
<% end %>