1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut-pastebin synced 2025-06-07 14:17:26 -04:00

Fully switched to TT. Next is eval

This commit is contained in:
Ryan Voots 2016-06-17 00:46:45 -04:00
parent e813cb29cd
commit cf450f198c
2 changed files with 14 additions and 14 deletions

BIN
pastes.db

Binary file not shown.

View file

@ -38,17 +38,17 @@
<div class="panel">
<div class="panel-heading">
<div class="row">
% if ($viewing) {
[% IF viewing %]
<div class="col-md-3">
<b>Who: </b><%= $who %>
<b>Who: </b>[% who %]
</div>
<div class="col-md-3">
<b>When: </b><%= $when %>
<b>When: </b>[% when %]
</div>
<div class="col-md-6">
<b>What: </b><%= $what %>
<b>What: </b>[% what %]
</div>
% } else {
[% ELSE %]
<div class="col-md-3">
<label for="name">Who: </label>
<input size="20" name="name" placeholder="Anonymous" />
@ -57,29 +57,29 @@
<label for="chan">Where: </label>
<select name="chan" id="chan">
<option value="">-- IRC Channel --</option>
% for my $i (keys %$channels) {
<option value="<%= $i %>"><%= $channels->{$i} %></option>
% }
[% FOREACH channel = channels %]
<option value="[% channel.key %]">[% channel.value %]</option>
[% END %]
</select>
</div>
<div class="col-md-6">
<label for="desc">What: </label>
<input size="40" name="desc" placeholder="I broke this" />
</div>
% }
[% END %]
</div>
</div>
</div>
<div class="panel-body">
<div class="editors">
<textarea name="paste" id="paste" cols="80" rows="25"><%= $pastedata %></textarea>
<textarea name="paste" id="paste" cols="80" rows="25">[% pastedata %]</textarea>
<pre id="editor">
</pre>
</div>
<div class="panel-footer">
% unless ($viewing) {
[% UNLESS viewing %]
<input value="Submit" type="submit" id="submit" />
% }
[% END %]
</div>
</div>
</div>
@ -94,9 +94,9 @@
//editor.setTheme("ace/theme/twilight");
editor.session.setMode("ace/mode/perl");
% if ($viewing) {
[% IF viewing %]
editor.setReadOnly(true);
% }
[% END %]
function resizeAce() {
var h = window.innerHeight;