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.

20 lines
515 B

10 years ago
% layout 'default';
10 years ago
% title 'Imgbin -- Latest';
10 years ago
<h1><%= l('Latest images') %></h1>
<div>
<div>
<%= link_to l('Upload') => "/imgbin", class => 'zerobin upload' %>
10 years ago
</div>
<hr/>
10 years ago
% 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>