You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
520 B

% layout 'default';
% title 'Zerobin -- View';
% stash 'styles' => 'hljs zerobin';
% stash 'scripts' => 'jquery highlight zerobin';
<h1><%= l('View paste') %></h1>
<div>
<div>
<span class="zerobin cblock">
<%= link_to l('Create new') => "/zerobin2" %>
</span>
</div>
<br/>
% my $paste = (stash 'paste') || {};
% my $syntax = $paste->{syntax};
% my @opts = ($syntax and $syntax ne 'auto') ? (class => $syntax) : ();
<div>
<pre><%= tag 'code' => (@opts) => $paste->{data}; %></pre>
</div>
</div>