Browse Source

* update imgbin's design

master
Alex 'AdUser' Z 9 years ago
parent
commit
e335c53200
  1. 18
      templates/imgbin/view.html.ep

18
templates/imgbin/view.html.ep

@ -4,16 +4,12 @@
<h1><%= l('View image') %></h1> <h1><%= l('View image') %></h1>
<div> <div>
<div> <div>
<%= link_to l('Upload') => "/imgbin", class => 'zerobin upload' %>&nbsp;
% if (config->{imgbin}->{show_latest}) { % if (config->{imgbin}->{show_latest}) {
<span class="zerobin cblock"> <%= link_to l('Latest images') => "/imgbin/latest", class => 'zerobin latest' %>&nbsp;
<%= link_to l('Latest images') => "/imgbin/latest" %>
</span>
% } % }
<span class="zerobin cblock">
<%= link_to l('Upload more') => "/imgbin" %>
</span>
</div> </div>
<br/> <hr/>
<div> <div>
% my $image = (stash 'image') || {}; % my $image = (stash 'image') || {};
% my $style = sprintf "max-width: %dpx;", $config->{imgbin}->{css_maxwidth}; % my $style = sprintf "max-width: %dpx;", $config->{imgbin}->{css_maxwidth};
@ -23,9 +19,9 @@
</div> </div>
<hr/> <hr/>
<table> <table>
% foreach my $key (qw(width height size name comment)) { <tr><td><%= l('Dimensions') %></td><td>:</td><td><%= "$image->{width}x$image->{height}" %></td></tr>
% next unless $image->{$key}; <tr><td><%= l('Size') %></td><td>:</td><td><%= sprintf("%.1f kb", $image->{size} / 1024) %></td></tr>
<tr><%= tag td => l(ucfirst($key)) %><td> : </td><%= tag td => $image->{$key} %></tr> <tr><td><%= l('Name') %></td><td>:</td><td><%= $image->{name} // '-' %></td></tr>
% } <tr><td><%= l('Comment') %></td><td>:</td><td><%= $image->{comment} // '-' %></td></tr>
</table> </table>
</div> </div>

Loading…
Cancel
Save