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.
 
 
 
 

22 lines
570 B

% layout 'default';
% title 'Imgbin -- View';
% stash 'styles' => 'zerobin';
<h1><%= l('Latest images') %></h1>
<div>
<div>
<span class="zerobin cblock">
<%= link_to l('Upload more') => "/imgbin" %>
</span>
</div>
<br/>
% my $images = stash('images') || [];
% foreach my $i (@{ $images }) {
% my $tooltip = sprintf "%s / %dx%d / %.1f kb",
% $i->{name}, $i->{width}, $i->{height}, $i->{size} / 1024;
<div class="img-preview">
<%= link_to $i->{url} => begin %>
<%= image $i->{path}, title => $tooltip %>
<% end %>
</div>
% }
</div>