MPD Web
Directory listing for <%= ($dir == '') ? 'Root' : $dir + '/' %>
<% unless $dir == '' %>
..
<% end %> <% $listing.each do |dir| %>
<%= dir.html_encode.split('/')[-1] %>
<% end %>
File Listing
<% $config[:fbHeaders].each do |title| %>
<%= title %>
<% end %>
<% $files.each do |f| %>
<% $config[:fbContent].each do |col| %>
<% if col == 'tools' %> <%= file_tools f['file'] %> <% else %> <%= f[col] %> <% end %>
<% end %>
<% end %>
Directory Tools
<% $tools.each do |tool| %>
<%= tool.split('.')[0].gsub('_',' ').html_encode %>
<% end %>
Go home