% layout 'default'; % title 'Imgbin -- View';

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

<%= link_to l('Upload') => "/imgbin", class => 'zerobin upload' %>  % if (config->{imgbin}->{show_latest}) { <%= link_to l('Latest images') => "/imgbin/latest", class => 'zerobin latest' %>  % }

% 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 %>

<%= l('Dimensions') %>:<%= "$image->{width}x$image->{height}" %>
<%= l('Size') %>:<%= sprintf("%.1f kb", $image->{size} / 1024) %>
<%= l('Name') %>:<%= $image->{name} // '-' %>
<%= l('Comment') %>:<%= $image->{comment} // '-' %>