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