|
|
|
@ -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') { |
|
|
|
|