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.create { background-image: url('/img/pcreate.png'); }
a.zerobin.download { background-image: url('/img/pdownload.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 %> <%= select_field 'expire' => \@times %>
</span> </span>
% if (config->{imgbin}->{show_latest}) { % if (config->{imgbin}->{show_latest}) {
<span class="zerobin cblock"> <%= link_to l('Latest images') => "/imgbin/latest", class => 'zerobin latest' %>
<%= link_to l('Latest images') => "/imgbin/latest" %>
</span>
% } % }
</div> </div>
<hr/> <hr/>

6
templates/imgbin/latest.html.ep

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

10
templates/zerobin/create.html.ep

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

Loading…
Cancel
Save