|
|
@ -1,12 +1,12 @@ |
|
|
|
% layout 'default'; |
|
|
|
% layout 'default'; |
|
|
|
% title 'Zerobin -- View'; |
|
|
|
% title 'Zerobin -- View'; |
|
|
|
% my $paste = stash('paste') || {}; |
|
|
|
% my $paste = stash('paste') || {}; |
|
|
|
% my $path = sprintf '/zerobin/%d.txt', $paste->{created}; |
|
|
|
% my $fname = sprintf '%d.txt', $paste->{created}; |
|
|
|
<h1><%= l('View paste') %></h1> |
|
|
|
<h1><%= l('View paste') %></h1> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<%= link_to l('Create new') => "/zerobin", class => 'zerobin create' %> |
|
|
|
<%= link_to l('Create new') => "/zerobin", class => 'zerobin create' %> |
|
|
|
<%= link_to l('Download') => $path, class => 'zerobin download' %> |
|
|
|
<%= link_to l('Download') => "/zerobin/$fname", class => 'zerobin download', download => $fname %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br/> |
|
|
|
<br/> |
|
|
|
<div class="paste"> |
|
|
|
<div class="paste"> |
|
|
|