From e335c532007c8380e27c00112e19f41f1e318723 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 26 Dec 2015 21:07:07 +1000 Subject: [PATCH] * update imgbin's design --- templates/imgbin/view.html.ep | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/templates/imgbin/view.html.ep b/templates/imgbin/view.html.ep index 982b39d..33ce581 100644 --- a/templates/imgbin/view.html.ep +++ b/templates/imgbin/view.html.ep @@ -4,16 +4,12 @@

<%= l('View image') %>

+ <%= link_to l('Upload') => "/imgbin", class => 'zerobin upload' %>  % if (config->{imgbin}->{show_latest}) { - - <%= link_to l('Latest images') => "/imgbin/latest" %> - + <%= link_to l('Latest images') => "/imgbin/latest", class => 'zerobin latest' %>  % } - - <%= link_to l('Upload more') => "/imgbin" %> -
-
+
% my $image = (stash 'image') || {}; % my $style = sprintf "max-width: %dpx;", $config->{imgbin}->{css_maxwidth}; @@ -23,9 +19,9 @@

-% foreach my $key (qw(width height size name comment)) { -% next unless $image->{$key}; - <%= tag td => l(ucfirst($key)) %><%= tag td => $image->{$key} %> -% } + + + +
:
<%= l('Dimensions') %>:<%= "$image->{width}x$image->{height}" %>
<%= l('Size') %>:<%= sprintf("%.1f kb", $image->{size} / 1024) %>
<%= l('Name') %>:<%= $image->{name} // '-' %>
<%= l('Comment') %>:<%= $image->{comment} // '-' %>