diff --git a/lib/LDV/I18N/ru.pm b/lib/LDV/I18N/ru.pm index 5e022d8..ad31878 100644 --- a/lib/LDV/I18N/ru.pm +++ b/lib/LDV/I18N/ru.pm @@ -19,6 +19,7 @@ our %Lexicon = 'Display name' => 'Отображаемое имя', 'Email' => 'Эл. почта', 'Create' => 'Создать', + 'Download' => 'Скачать', 'Organization' => 'Организация', 'Cell phone' => 'Сотовый', 'Avatar' => 'Аватар', diff --git a/public/css/zerobin.css b/public/css/zerobin.css index 1648a26..63adc97 100644 --- a/public/css/zerobin.css +++ b/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'); } diff --git a/templates/zerobin/view.html.ep b/templates/zerobin/view.html.ep index 50e383d..8473ba6 100644 --- a/templates/zerobin/view.html.ep +++ b/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') || {};

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

- - <%= link_to l('Create new') => "/zerobin2" %> - + <%= link_to l('Create new') => "/zerobin2", class => 'zerobin create' %> + <%= link_to l('Download') => "/zerobin/$paste->{time}.txt", class => 'zerobin download' %>

-% my $paste = (stash 'paste') || {}; % if (not $paste->{syntax} or $paste->{syntax} eq 'plaintext') { %= b(plaintext($paste->{data})); % } elsif ($paste->{syntax} eq 'markdown') {