<% use Mojo::Util qw/term_escape html_unescape url_unescape url_escape/; %> <% use Mojo::JSON qw/encode_json decode_json/; %>
<% my $n = 0; %> <% if ($crate->{'settings'}->{'layout'} eq 'icons') { %>
<% if (scalar @{$crate->{'songs'}} > 0) { %> <% foreach my $f (@{$crate->{'songs'}}) { %> <% next unless $f->{'filename'}; %> <% my @title = split '', &subs::shorthand_name($f->{'formatted_name'} || $f->{'full_title'},45); %> <% $n = $n + 1; %>
<% foreach my $t ( @title ) { %> <% if ($t eq ' ') { $t = 'blank'; } elsif ($t eq '.') { $t = 'dot'; } else { $t = uc $t; } %> <% } %> <%= $f->{'info'}->{'duration'} %>
<%} %>
<% } %> <% } else { %> <% if (scalar @{$crate->{'songs'}} > 0) { %> <% foreach my $f (@{$crate->{'songs'}}) { %> <% next unless $f->{'filename'}; %> <% $n = $n + 1; %> <% } %> <% } %>
ThumbTitleTime
<% } %>