<h1>Song Listing</h1>

<table>
  <tr>
    <th width="400" align="left">File Name</th>
    <th width="150" align="left">Song Length</th>
    <th width="150" align="left">Listen Count</th>
    <th width="180" align="left">Author</th>
   
    <% if @songs.size > 0 %>
      <%#= render :partial => "playlist" %>
    <% end %>

	</object>
<tr>
  </tr>
<br />
<br />




<% for song in @songs %>
  <tr>
    <td><%= link_to( h(song.audio_file_name), song_path(song)) %></td>
    <td><%=h song.song_length %></td>
    <td><%=h song.listen_count %>
    <td><%=h song.author %></td>
  </tr>
<% end %>



</table>

<br />
<%= will_paginate @songs %>

<br />
<% if logged_in? %>
  <%= link_to 'New song', new_song_path %>
<% end %>
