From 67c8b91472a7f6dbe00dd2583e055e329f0c4e27 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sun, 21 Jun 2009 22:43:49 +0200 Subject: [PATCH 1/1] Move markitup to an include file and use for both board and thread --- root/lib/inc/markitup.tt2 | 10 ++++++++++ root/src/forum/board.tt2 | 4 +++- root/src/forum/thread.tt2 | 7 +------ 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 root/lib/inc/markitup.tt2 diff --git a/root/lib/inc/markitup.tt2 b/root/lib/inc/markitup.tt2 new file mode 100644 index 0000000..1713387 --- /dev/null +++ b/root/lib/inc/markitup.tt2 @@ -0,0 +1,10 @@ +[%- site.stylesheets = ['markitup/skins/simple/style.css','markitup/sets/bbcode/style.css' ] %] + + + + diff --git a/root/src/forum/board.tt2 b/root/src/forum/board.tt2 index f158e65..a0cdafe 100644 --- a/root/src/forum/board.tt2 +++ b/root/src/forum/board.tt2 @@ -48,9 +48,11 @@ [% IF board.post %]
New Thread

Subject:

- +
+ +[% INCLUDE inc/markitup.tt2 %] [% END %] diff --git a/root/src/forum/thread.tt2 b/root/src/forum/thread.tt2 index 4ea7eb7..5668f8a 100644 --- a/root/src/forum/thread.tt2 +++ b/root/src/forum/thread.tt2 @@ -79,10 +79,6 @@ [% END %] [% IF thread.post %] -[%- site.stylesheets = ['markitup/skins/simple/style.css','markitup/sets/bbcode/style.css' ] %] - - - +[% INCLUDE inc/markitup.tt2 %] [% END %] -- 2.39.2