From: Michael Andreen Date: Sun, 21 Jun 2009 20:43:49 +0000 (+0200) Subject: Move markitup to an include file and use for both board and thread X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=67c8b91472a7f6dbe00dd2583e055e329f0c4e27 Move markitup to an include file and use for both board and thread --- 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 %]