Alex 'AdUser' Z
10 years ago
5 changed files with 42 additions and 1 deletions
@ -0,0 +1,22 @@
|
||||
% 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> |
Loading…
Reference in new issue