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