You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
635 B

% layout 'default';
% title 'Imgbin -- View';
% stash 'styles' => 'zerobin';
<h1><%= l('View image') %></h1>
<div>
<div>
<span class="zerobin cblock">
<%= link_to l('Upload more') => "/imgbin" %>
</span>
</div>
<br/>
<div>
% my $image = (stash 'image') || {};
% my $style = sprintf "max-width: %dpx;", $config->{imgbin}->{css_maxwidth};
%= image $image->{path}, style => $style;
</div>
<hr/>
<table>
% foreach my $key (qw(width height size name comment)) {
% next unless $image->{$key};
<tr><%= tag td => l(ucfirst($key)) %><td> : </td><%= tag td => $image->{$key} %></tr>
% }
</table>
</div>