Browse Source

* update zerobin's design

master
Alex 'AdUser' Z 9 years ago
parent
commit
82824c6a45
  1. 2
      public/css/zerobin.css
  2. 4
      templates/imgbin/create.html.ep
  3. 6
      templates/imgbin/latest.html.ep
  4. 10
      templates/zerobin/create.html.ep

2
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'); }

4
templates/imgbin/create.html.ep

@ -16,9 +16,7 @@
<%= select_field 'expire' => \@times %>
</span>
% if (config->{imgbin}->{show_latest}) {
<span class="zerobin cblock">
<%= link_to l('Latest images') => "/imgbin/latest" %>
</span>
<%= link_to l('Latest images') => "/imgbin/latest", class => 'zerobin latest' %>
% }
</div>
<hr/>

6
templates/imgbin/latest.html.ep

@ -4,11 +4,9 @@
<h1><%= l('Latest images') %></h1>
<div>
<div>
<span class="zerobin cblock">
<%= link_to l('Upload more') => "/imgbin" %>
</span>
<%= link_to l('Upload') => "/imgbin", class => 'zerobin upload' %>
</div>
<br/>
<hr/>
% my $images = stash('images') || [];
% foreach my $i (@{ $images }) {
% my $tooltip = sprintf "%s / %dx%d / %.1f kb",

10
templates/zerobin/create.html.ep

@ -11,22 +11,22 @@
<div>
<%= form_for "/zerobin2" => (method => 'POST', enctype => "multipart/form-data") => begin %>
<div>
<span class="zerobin cblock">
<%= submit_button l('Save') %>
<span class="zerobin">
<%= submit_button l('Save') %>&nbsp;
</span>
<span class="zerobin cblock">
<%= tag 'label' => (for => 'expire') => l('Keep for') %>:
<%= select_field 'expire' => \@times %>
<%= select_field 'expire' => \@times %>&nbsp;
</span>
<span class="zerobin cblock">
<%= tag 'label' => (for => 'syntax') => l('Format') %>:
<%= select_field 'syntax' => $syntax; %>
<%= select_field 'syntax' => $syntax %>
</span>
</div>
<p>
<input type="radio" name="source" value="form" checked="1">Копипаст &darr;&darr;&darr;</input>
<input type="radio" name="source" value="file">или файл &rarr;</input>&nbsp;
<input type="file" name="file">
<input type="file" name="file" id="upload">
</p>
<div>
<%= tag 'textarea' => (placeholder => l('Paste your text here'), %opts) => '' %>

Loading…
Cancel
Save