diff --git a/pastes.db b/pastes.db index 55e4d0c..5d3f1ee 100644 Binary files a/pastes.db and b/pastes.db differ diff --git a/templates/editor.html.tt b/templates/editor.html.tt index 5fa6dcb..7e4fb4c 100755 --- a/templates/editor.html.tt +++ b/templates/editor.html.tt @@ -38,17 +38,17 @@
- % if ($viewing) { + [% IF viewing %]
- Who: <%= $who %> + Who: [% who %]
- When: <%= $when %> + When: [% when %]
- What: <%= $what %> + What: [% what %]
- % } else { + [% ELSE %]
@@ -57,29 +57,29 @@
- % } + [% END %]
- +
         
@@ -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;