From 1ffb8c7688a3ecc947c81bccbd406f277c9d853a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 18 Feb 2011 09:33:09 -0600 Subject: clean up the templates a bit --- root/templates/edit.tt | 8 ++------ root/templates/history.tt | 12 +++--------- root/templates/page.tt | 10 ++++------ root/templates/wrappers/root.tt | 6 ++++++ 4 files changed, 15 insertions(+), 21 deletions(-) create mode 100644 root/templates/wrappers/root.tt (limited to 'root') diff --git a/root/templates/edit.tt b/root/templates/edit.tt index a2be77c..4b5c811 100644 --- a/root/templates/edit.tt +++ b/root/templates/edit.tt @@ -1,12 +1,8 @@ - - -

[% page %]

+[% WRAPPER 'wrappers/root.tt' %]

View

-

- - +[% END %] diff --git a/root/templates/history.tt b/root/templates/history.tt index a50839b..1393b7e 100644 --- a/root/templates/history.tt +++ b/root/templates/history.tt @@ -1,7 +1,5 @@ - - -

[% page %]

-

View

+[% WRAPPER 'wrappers/root.tt' %] +

View Current

-

-Last modified by [% author.id %] on [% modified %] -

- - +[% END %] diff --git a/root/templates/page.tt b/root/templates/page.tt index 754d4b7..69d5213 100644 --- a/root/templates/page.tt +++ b/root/templates/page.tt @@ -1,17 +1,15 @@ - - -

[% page %]

+[% WRAPPER 'wrappers/root.tt' %] [% IF historical %]

This is a historical view of this page

+

View Current

[% ELSE %]

Edit

[% END %] -

History

+

Page History

[% text %]

Last modified by [% author.id %] on [% modified %]

- - +[% END %] diff --git a/root/templates/wrappers/root.tt b/root/templates/wrappers/root.tt new file mode 100644 index 0000000..de07514 --- /dev/null +++ b/root/templates/wrappers/root.tt @@ -0,0 +1,6 @@ + + +

[% page %]

+[% content %] + + -- cgit v1.2.3-54-g00ecf