Browse Source

* /zerobin/:time

master
Alex 'AdUser' Z 9 years ago
parent
commit
0e0f790dae
  1. 1
      lib/LDV/I18N/ru.pm
  2. 17
      public/css/zerobin.css
  3. 7
      templates/zerobin/view.html.ep

1
lib/LDV/I18N/ru.pm

@ -19,6 +19,7 @@ our %Lexicon =
'Display name' => 'Отображаемое имя',
'Email' => 'Эл. почта',
'Create' => 'Создать',
'Download' => 'Скачать',
'Organization' => 'Организация',
'Cell phone' => 'Сотовый',
'Avatar' => 'Аватар',

17
public/css/zerobin.css

@ -1,11 +1,3 @@
span.cblock {
border-radius: 2px;
background-color: #F3F3F3;
padding: 3px;
margin: 3px;
font-size: 12pt;
}
textarea#paste {
width: 50%;
height: 300px;
@ -27,3 +19,12 @@ div.img-preview {
display: inline-block;
vertical-align: top;
}
a.zerobin {
padding-left: 18px;
background: transparent no-repeat scroll left center;
font-size: 12pt;
}
a.zerobin.create { background-image: url('/img/pcreate.png'); }
a.zerobin.download { background-image: url('/img/pdownload.png'); }

7
templates/zerobin/view.html.ep

@ -2,16 +2,15 @@
% title 'Zerobin -- View';
% stash 'styles' => 'hljs zerobin';
% stash 'scripts' => 'jquery highlight zerobin';
% my $paste = (stash 'paste') || {};
<h1><%= l('View paste') %></h1>
<div>
<div>
<span class="zerobin cblock">
<%= link_to l('Create new') => "/zerobin2" %>
</span>
<%= link_to l('Create new') => "/zerobin2", class => 'zerobin create' %>
<%= link_to l('Download') => "/zerobin/$paste->{time}.txt", class => 'zerobin download' %>
</div>
<br/>
<div class="paste">
% my $paste = (stash 'paste') || {};
% if (not $paste->{syntax} or $paste->{syntax} eq 'plaintext') {
%= b(plaintext($paste->{data}));
% } elsif ($paste->{syntax} eq 'markdown') {

Loading…
Cancel
Save