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.
 
 
 
 

31 lines
845 B

% layout 'default';
% title 'Imgbin -- View';
% stash 'styles' => 'zerobin';
<h1><%= l('View image') %></h1>
<div>
<div>
% if (config->{imgbin}->{show_latest}) {
<span class="zerobin cblock">
<%= link_to l('Latest images') => "/imgbin/latest" %>
</span>
% }
<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};
<%= link_to $image->{path} => begin %>
<%= image $image->{path}, style => $style; %>
<% end %>
</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>