Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
bduggan committed Nov 21, 2010
1 parent a1a7c30 commit 19e31dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Quikpic
Expand Up @@ -24,7 +24,7 @@ sub _check_user_pw {
my $i = IO::File->new("<$file") or die "no such file $file";
$dirs = [ map { chomp; $_; } $i->getlines ];
}
my %labels = map { $_ => do { /\/([^\/]*)$/; substr($1,0,10); }} @$dirs;
my %labels = map { $_ => do { /\/([^\/]*)$/; $1; }} @$dirs;
$c->stash(user => $user);
$c->stash(dirs => [ sort {
$labels{$a} =~ /^\d/ && $labels{$b} !~ /^\d/ ? -1
Expand Down Expand Up @@ -92,7 +92,7 @@ __DATA__
<td <%== $i==$dirindex ? 'class="selected"' : '' %> <%== sprintf('style="width:%d%%"',100/$cols) =%> >
% my $label = $labels->{$dirs->[$i]};
%= link_to 'index' => {dirindex => $i} => (title => "$label") => begin
<%= $label =%>
<%= substr($label,0,10) =%>
% end
</td>
%== ($i+1) % $cols == 0 ? "</tr><tr>" : ""
Expand Down

0 comments on commit 19e31dd

Please sign in to comment.