There be a website
This commit is contained in:
parent
64fb080e96
commit
af0907c7c3
65 changed files with 708 additions and 14 deletions
32
app/views/music/index.html.erb
Normal file
32
app/views/music/index.html.erb
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<div class="current-track">
|
||||
<% if @current_track["image"] != "" %>
|
||||
<div>
|
||||
<%= image_tag @current_track[:image], alt: "Album cover for " + @current_track[:title] + " by " + @current_track[:artist] %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div>
|
||||
<h2><%= @current_track[:header]%>:</h2>
|
||||
<font color="#000000"><%== link_to @current_track[:title] %></font><br>
|
||||
by <%= @current_track[:artist] %><br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="music-top10">
|
||||
<caption>
|
||||
<h2 style="margin-bottom: 5px">Top 10 Tracks (Last 30 days):</h2>
|
||||
</caption>
|
||||
<tr>
|
||||
<th><b>#</b></th>
|
||||
<th><b>Track</b></th>
|
||||
<th><b>Artist</b></th>
|
||||
<th><b>Plays</b></th>
|
||||
</tr>
|
||||
<% @top_tracks.each.with_index do |track, index| %>
|
||||
<tr>
|
||||
<td><%= index %></td>
|
||||
<td><font color="#000000"><%= link_to track[:title], track[:url] %></font></td>
|
||||
<td><%= track[:artist] %></td>
|
||||
<td><%= track[:plays] %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue