% layout 'default'; % title 'Imgbin -- View'; % stash 'styles' => 'zerobin';

<%= l('View image') %>

<%= link_to l('Upload more') => "/imgbin" %>

% my $image = (stash 'image') || {}; % my $style = sprintf "max-width: %dpx;", $config->{imgbin}->{css_maxwidth}; <%= link_to $image->{path} => begin %> <%= image $image->{path}, style => $style; %> <% end %>

% foreach my $key (qw(width height size name comment)) { % next unless $image->{$key}; <%= tag td => l(ucfirst($key)) %><%= tag td => $image->{$key} %> % }
: