<%= difficulty = (difficulty_set || difficulty_community).try { |n| LevelDifficulty.new(n) } demon_difficulty = demon_difficulty_int.try { |n| DemonDifficulty.new(n) } "" %> <%- if stars -%>
<%= stars %>
<%- end -%>
<%= name %>
<%= downloads %> <%= likes %>
DESCRIPTION
<%= description != "" ? HTML.escape(description) : "No description provided" %>
SONG
<%- if song_name -%>
<%= song_name %>
<%- if song_author && song_author != "" -%>
by <%= song_author %>
<%- else -%>
unknown artist
<%- end -%> <%- else -%> idk <%- end -%>
<% rank = 0 scores.each do |percent, coins, username, icon_type, color1, color2, cube, ship, ball, ufo, wave, robot, spider, special, set_at| rank = rank + 1 icon_value = [cube, ship, ball, ufo, wave, robot, spider][icon_type] type_str = ["cube", "ship", "ball", "ufo", "wave", "robot", "spider"][icon_type] set_at_date = Time.parse(set_at, Format::TIME_FORMAT, Time::Location::UTC) %> <%- end -%> <%- if scores.size == 0 -%> <%- end -%>
RANK PERCENT COINS PLAYER TIME
#<%= rank %> <%= percent %>%
<%- coins.times do |i| -%> .png"> <%- end -%>
" class="player-icon"> <%= username %>
No scores

Comments

<%- comments.each do |comment, created_at, username, icon_type, color1, color2, cube, ship, ball, ufo, wave, robot, spider, special| icon_value = [cube, ship, ball, ufo, wave, robot, spider][icon_type] type_str = ["cube", "ship", "ball", "ufo", "wave", "robot", "spider"][icon_type] created_at_date = Time.parse(created_at, Format::TIME_FORMAT, Time::Location::UTC) %>
" class="player-icon"> <%= username %>
<%= HTML.escape(comment) %>
<%- end -%>