diff --git a/public/css/zerobin.css b/public/css/zerobin.css index 63adc97..e05e9e2 100644 --- a/public/css/zerobin.css +++ b/public/css/zerobin.css @@ -28,3 +28,5 @@ a.zerobin { a.zerobin.create { background-image: url('/img/pcreate.png'); } a.zerobin.download { background-image: url('/img/pdownload.png'); } +a.zerobin.upload { background-image: url('/img/upload.png'); } +a.zerobin.latest { background-image: url('/img/images.png'); } diff --git a/templates/imgbin/create.html.ep b/templates/imgbin/create.html.ep index 4de34db..c0390f4 100644 --- a/templates/imgbin/create.html.ep +++ b/templates/imgbin/create.html.ep @@ -16,9 +16,7 @@ <%= select_field 'expire' => \@times %> % if (config->{imgbin}->{show_latest}) { - - <%= link_to l('Latest images') => "/imgbin/latest" %> - + <%= link_to l('Latest images') => "/imgbin/latest", class => 'zerobin latest' %> % }
diff --git a/templates/imgbin/latest.html.ep b/templates/imgbin/latest.html.ep index d3128db..1672820 100644 --- a/templates/imgbin/latest.html.ep +++ b/templates/imgbin/latest.html.ep @@ -4,11 +4,9 @@

<%= l('Latest images') %>

- - <%= link_to l('Upload more') => "/imgbin" %> - + <%= link_to l('Upload') => "/imgbin", class => 'zerobin upload' %>
-
+
% my $images = stash('images') || []; % foreach my $i (@{ $images }) { % my $tooltip = sprintf "%s / %dx%d / %.1f kb", diff --git a/templates/zerobin/create.html.ep b/templates/zerobin/create.html.ep index 4b5755a..e913b8a 100644 --- a/templates/zerobin/create.html.ep +++ b/templates/zerobin/create.html.ep @@ -11,22 +11,22 @@
<%= form_for "/zerobin2" => (method => 'POST', enctype => "multipart/form-data") => begin %>
- - <%= submit_button l('Save') %> + + <%= submit_button l('Save') %>  <%= tag 'label' => (for => 'expire') => l('Keep for') %>: - <%= select_field 'expire' => \@times %> + <%= select_field 'expire' => \@times %>  <%= tag 'label' => (for => 'syntax') => l('Format') %>: - <%= select_field 'syntax' => $syntax; %> + <%= select_field 'syntax' => $syntax %>

Копипаст ↓↓↓ или файл →  - +

<%= tag 'textarea' => (placeholder => l('Paste your text here'), %opts) => '' %>