1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut-pastebin synced 2025-06-07 22:26:01 -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">
<div class="panel-heading"> <div class="panel-heading">
<div class="row"> <div class="row">
% if ($viewing) { [% IF viewing %]
<div class="col-md-3"> <div class="col-md-3">
<b>Who: </b><%= $who %> <b>Who: </b>[% who %]
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<b>When: </b><%= $when %> <b>When: </b>[% when %]
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<b>What: </b><%= $what %> <b>What: </b>[% what %]
</div> </div>
% } else { [% ELSE %]
<div class="col-md-3"> <div class="col-md-3">
<label for="name">Who: </label> <label for="name">Who: </label>
<input size="20" name="name" placeholder="Anonymous" /> <input size="20" name="name" placeholder="Anonymous" />
@ -57,29 +57,29 @@
<label for="chan">Where: </label> <label for="chan">Where: </label>
<select name="chan" id="chan"> <select name="chan" id="chan">
<option value="">-- IRC Channel --</option> <option value="">-- IRC Channel --</option>
% for my $i (keys %$channels) { [% FOREACH channel = channels %]
<option value="<%= $i %>"><%= $channels->{$i} %></option> <option value="[% channel.key %]">[% channel.value %]</option>
% } [% END %]
</select> </select>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="desc">What: </label> <label for="desc">What: </label>
<input size="40" name="desc" placeholder="I broke this" /> <input size="40" name="desc" placeholder="I broke this" />
</div> </div>
% } [% END %]
</div> </div>
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="editors"> <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 id="editor">
</pre> </pre>
</div> </div>
<div class="panel-footer"> <div class="panel-footer">
% unless ($viewing) { [% UNLESS viewing %]
<input value="Submit" type="submit" id="submit" /> <input value="Submit" type="submit" id="submit" />
% } [% END %]
</div> </div>
</div> </div>
</div> </div>
@ -94,9 +94,9 @@
//editor.setTheme("ace/theme/twilight"); //editor.setTheme("ace/theme/twilight");
editor.session.setMode("ace/mode/perl"); editor.session.setMode("ace/mode/perl");
% if ($viewing) { [% IF viewing %]
editor.setReadOnly(true); editor.setReadOnly(true);
% } [% END %]
function resizeAce() { function resizeAce() {
var h = window.innerHeight; var h = window.innerHeight;