Part 1 of 2: Moving templates out of the default/ folder because we no longer are using this concept of "styles"

Robert Sesek [2007-04-21 21:38]
Part 1 of 2: Moving templates out of the default/ folder because we no longer are using this concept of "styles"
Filename
templates/blame.tpl
templates/blame_line.tpl
templates/browse.tpl
templates/browse_node.tpl
templates/bullet.gif
templates/code.css
templates/code2.css
templates/default/blame.tpl
templates/default/blame_line.tpl
templates/default/browse.tpl
templates/default/browse_node.tpl
templates/default/bullet.gif
templates/default/code.css
templates/default/code2.css
templates/default/diff.css
templates/default/diff.tpl
templates/default/diff_file.tpl
templates/default/diff_hunk.tpl
templates/default/diff_line.tpl
templates/default/doctype.tpl
templates/default/file.css
templates/default/file_change.tpl
templates/default/footer.tpl
templates/default/head.gif
templates/default/header.tpl
templates/default/headinclude.tpl
templates/default/index.tpl
templates/default/index_node.tpl
templates/default/log.tpl
templates/default/log_node.tpl
templates/default/main.css
templates/default/pagenav.tpl
templates/default/pagenav_bit.tpl
templates/default/property.tpl
templates/default/select_option.tpl
templates/default/subhead.gif
templates/default/view.tpl
templates/diff.css
templates/diff.tpl
templates/diff_file.tpl
templates/diff_hunk.tpl
templates/diff_line.tpl
templates/doctype.tpl
templates/file.css
templates/file_change.tpl
templates/footer.tpl
templates/head.gif
templates/header.tpl
templates/headinclude.tpl
templates/index.tpl
templates/index_node.tpl
templates/log.tpl
templates/log_node.tpl
templates/main.css
templates/pagenav.tpl
templates/pagenav_bit.tpl
templates/property.tpl
templates/select_option.tpl
templates/subhead.gif
templates/view.tpl
diff --git a/templates/blame.tpl b/templates/blame.tpl
new file mode 100644
index 0000000..4dc34c6
--- /dev/null
+++ b/templates/blame.tpl
@@ -0,0 +1,27 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/diff.css" media="screen" />
+	<title>{@"Blame"}</title>
+</head>
+
+$header
+
+<a href="$link[log]">{@"View Log"}</a>
+
+<if condition="$show['head']">
+	- <a href="$link[gohead]">{@"Go to HEAD"}</a>
+	- <a href="$link[diffhead]">{@"Diff to HEAD"}</a>
+</if>
+
+<if condition="$show['prev']">
+	- <a href="$link[diffprev]">{@"Diff to PREV"}</a>
+</if>
+
+<div class="head" style="border-width: 1px">$navbar</div>
+<table width="100%" cellspacing="0" cellpadding="0" border="0">
+$lines
+</table>
+
+$footer
\ No newline at end of file
diff --git a/templates/blame_line.tpl b/templates/blame_line.tpl
new file mode 100644
index 0000000..949617c
--- /dev/null
+++ b/templates/blame_line.tpl
@@ -0,0 +1,5 @@
+<tr>
+	<td class="lineheader" style="border-width: 0px 1px 1px 1px; width: 1%"><a href="$view">$revision</a></td>
+	<td class="lineheader" style="border-width: 0px 1px 1px 0px; width: 1%">$author</td>
+	<td class="code" style="border-width: 0px 1px 1px 0px">$line</td>
+</tr>
diff --git a/templates/browse.tpl b/templates/browse.tpl
new file mode 100644
index 0000000..0135165
--- /dev/null
+++ b/templates/browse.tpl
@@ -0,0 +1,44 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+	<title>{@"ViewSVN - Browse"}</title>
+</head>
+
+$header
+
+<div class="head">{@"Revision Information"}</div>
+<div class="content">
+	<div><strong>{@"Revision"}:</strong> $revision->revision</div>
+	<div><strong>{@"Author"}:</strong> $revision->author</div>
+	<div><strong>{@"Date"}:</strong> $revision->datetime</div>
+	<div><strong>{@"Message"}:</strong> $revision->message</div>
+</div>
+
+<div class="head" style="border-width: 0px 1px 1px 1px">
+	$navbar
+
+	<span style="font-weight: normal">
+		(
+		<a href="$link[log]">{@"View Log"}</a>
+
+		<if condition="$show['head']">
+			- <a href="$link[gohead]">{@"Go to HEAD"}</a>
+		</if>
+
+		<if condition="$show['diff']">
+			- <a href="$link[diff]">{@"View Changes"}</a>
+		</if>
+		)
+	</span>
+</div>
+<if condition="$show['props']">
+<div class="propbox">
+	<ul>
+	$proplist
+	</ul>
+</div>
+</if>
+$nodes
+
+$footer
\ No newline at end of file
diff --git a/templates/browse_node.tpl b/templates/browse_node.tpl
new file mode 100644
index 0000000..1388e85
--- /dev/null
+++ b/templates/browse_node.tpl
@@ -0,0 +1,11 @@
+<div class="content" style="border-width: 0px 1px 1px 1px">
+	<if condition="$isDir">
+		<a href="$itemLink"><strong>$item/</strong></a>
+	<else />
+		<a href="$itemLink">$item</a>
+	</if>
+	<!-- <span class="nodelink">
+		<if condition="$isDir"><a href="$blame">{@"Blame"}</a> - </if>
+		<a href="$log">{@"View Log"}</a>
+	</span> -->
+</div>
\ No newline at end of file
diff --git a/templates/bullet.gif b/templates/bullet.gif
new file mode 100644
index 0000000..e1d3cb0
Binary files /dev/null and b/templates/bullet.gif differ
diff --git a/templates/code.css b/templates/code.css
new file mode 100644
index 0000000..891e240
--- /dev/null
+++ b/templates/code.css
@@ -0,0 +1,108 @@
+.code-block {
+ border: 1px dotted #d7d7d7;
+ margin: 1em 0;
+ padding: .3em;
+ overflow: auto
+}
+.image-file { background: #eee; padding: .3em }
+.image-file img { background: url(../imggrid.png) }
+
+/* Default */
+.css_default, .c_default, .code_default, .pl_default, .p_default,
+.hphp_default, .yaml_default, .code-block span {
+ font-family: monospace;
+}
+
+/* Comments */
+.code-comment, .css_comment, .c_comment, .c_commentdoc, .c_commentline,
+.c_commentlinedoc, .h_comment,.pl_commentline, .p_commentblock,
+.p_commentline, .hphp_commentblock, .hphp_commentline,
+.yaml_comment {
+ color: #998;
+ font-style: italic;
+}
+
+/* Language keyword */
+.code-keyword, .pl_word  { color: #789; font-weight: bold }
+
+/* Type */
+.code-type, .c_word, .c_word2, .p_classname, .hphp_classname{
+ color: #468;
+ font-weight: bold;
+}
+
+/* Function */
+.code-func, .p_defname {
+ color: #900;
+ font-weight: bold;
+ border-bottom: none;
+}
+
+/* Pre-processor */
+.code-prep, .c_preprocessor, .pl_preprocessor, .yaml_identifier {
+ color: #999;
+ font-weight: bold;
+}
+
+/* Language construct */
+.code-lang, .p_word { color: #000; font-weight: bold }
+
+/* String */
+.code-string, .c_string, .c_stringeol, .css_doublestring, .css_singlestring,
+.h_singlestring, .h_doublestring, .pl_string, .pl_string_q, .pl_string_qq,
+.pl_string_qr, .pl_string_qw, .pl_string_qx, .pl_backticks, .pl_character,
+.p_string, .p_stringeol, .hphp_string, .hphp_stringeol, .hphp_triple,
+.hphp_tripledouble, .p_character, .p_triple, .p_tripledouble {
+ color: #b84;
+ font-weight: normal;
+}
+
+/* Variable name */
+.code-var { color: #f9f }
+
+/* SilverCity-specific styles */
+.css_id, .css_class, .css_pseudoclass, .css_tag { color: #900000 }
+.css_directive { color: #009000; font-weight: bold }
+.css_important { color: blue }
+.css_operator { color: #000090; font-weight: bold }
+.css_tag { font-weight: bold }
+.css_unknown_identifier, .css_unknown_pseudoclass { color: red }
+.css_value { color: navy }
+.c_commentdockeyword { color: navy; font-weight: bold }
+.c_commentdockeyworderror { color: red; font-weight: bold }
+.c_character, .c_regex, .c_uuid, .c_verbatim { color: olive }
+.c_number { color: #099 }
+.h_asp { color: #ff0 }
+.h_aspat { color: #ffdf00 }
+.h_attribute { color: teal }
+.h_attributeunknown { color: red }
+.h_cdata { color: #ffdf00 }
+.h_entity { color: purple }
+.h_number { color: #099 }
+.h_other { color: purple }
+.h_script, .h_tag, .h_tagend { color: navy }
+.h_tagunknown { color: red }
+.h_xmlend, .h_xmlstart { color: blue }
+.pl_datasection { color: olive }
+.pl_error { color: red; font-weight: bold }
+.pl_hash { color: #000 }
+.pl_here_delim, .pl_here_q, .pl_here_qq, .pl_here_qx, .pl_longquote { color: olive }
+.pl_number { color: #099 }
+.pl_pod { font-style: italic }
+.pl_regex, .pl_regsubst { color: olive }
+.p_number { color: #099 }
+.hphp_character { color: olive }
+.hphp_defname { color: #099; font-weight: bold }
+.hphp_number { color: #099 }
+.hphp_word { color: navy; font-weight: bold }
+.yaml_document { color: gray; font-style: italic }
+.yaml_keyword { color: #808 }
+.yaml_number { color: #800 }
+.yaml_reference { color: #088 }
+.v_comment { color: gray; font-style: italic }
+.v_commentline, .v_commentlinebang { color: red; font-style: italic }
+.v_number, .v_preprocessor { color: #099 }
+.v_string, .v_stringeol { color: olive }
+.v_user{ color: blue; font-weight: bold }
+.v_word, .v_word3 { color: navy; font-weight: bold }
+.v_word2 { color: green; font-weight: bold }
diff --git a/templates/code2.css b/templates/code2.css
new file mode 100644
index 0000000..2b02122
--- /dev/null
+++ b/templates/code2.css
@@ -0,0 +1,112 @@
+/*=====================================================================*\
+|| ###################################################################
+|| # ViewSVN [#]version[#]
+|| # Copyright 2002-[#]year[#] Blue Static
+|| #
+|| # This program is free software; you can redistribute it and/or modify
+|| # it under the terms of the GNU General Public License as published by
+|| # the Free Software Foundation; version [#]gpl[#] of the License.
+|| #
+|| # This program is distributed in the hope that it will be useful, but
+|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+|| # more details.
+|| #
+|| # You should have received a copy of the GNU General Public License along
+|| # with this program; if not, write to the Free Software Foundation, Inc.,
+|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+|| ###################################################################
+\*=====================================================================*/
+
+/*
+* Colours adaptd from Trac by Edgewall Software (http://www.edgewall.com/trac/)
+* Trac is under the GNU GPL version 2
+*/
+
+/*
+* The definitions in this file apply to ALL types of highlighting. If you want to
+* add more definitions (from other types of keywords by GeSHi) then you can name them
+* ".code .CLASS_NAME" to have them apply to all languages. If you want to add or
+* override a definition for a specific language, use ".GESHI_LANGUAGE .CLASS_NAME".
+*
+* This works because the code is wrapped like this:
+* <div class="code">
+* 	<div class="GESHI_LANGUAGE">
+* 	</div>
+* </div>
+*/
+
+/* Key Words I (if, do, while, etc.) */
+.code .kw1
+{
+	color: #468;
+	font-weight: bold;
+}
+
+/* Key Words II (null, true, false, etc.) */
+.code .kw2
+{
+	color: #000;
+	font-weight: bold;
+}
+
+
+/* Built-in Functions */
+.code .kw3
+{
+	color: #900;
+	font-weight: bold;
+}
+
+/* Data Types (int, bool, etc) */
+.code .kw4
+{
+	color: #000;
+	font-weight: bold;
+}
+
+/* Comments */
+.code .co1, .code .co2, .code .coMULTI
+{
+	color: #998;
+	font-style: italic;
+}
+
+/* Strings */
+.code .st0
+{
+	color: #b84;
+}
+
+/* Methods */
+.code .me0
+{
+	color: #900;
+}
+
+/* Standard text without highlighting (default) */
+.code .de1, .code .de2
+{
+}
+
+/* Escaped characters */
+.code .es0
+{
+}
+
+/* Symbols [ ( { } ) ] */
+.code .br0
+{
+}
+
+/* Numbers */
+.code .nu0
+{
+}
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
\ No newline at end of file
diff --git a/templates/default/blame.tpl b/templates/default/blame.tpl
deleted file mode 100644
index 4dc34c6..0000000
--- a/templates/default/blame.tpl
+++ /dev/null
@@ -1,27 +0,0 @@
-$doctype
-<html lang="##LANG##" xml:lang="##XML-LANG##">
-<head>
-$headinclude
-	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/diff.css" media="screen" />
-	<title>{@"Blame"}</title>
-</head>
-
-$header
-
-<a href="$link[log]">{@"View Log"}</a>
-
-<if condition="$show['head']">
-	- <a href="$link[gohead]">{@"Go to HEAD"}</a>
-	- <a href="$link[diffhead]">{@"Diff to HEAD"}</a>
-</if>
-
-<if condition="$show['prev']">
-	- <a href="$link[diffprev]">{@"Diff to PREV"}</a>
-</if>
-
-<div class="head" style="border-width: 1px">$navbar</div>
-<table width="100%" cellspacing="0" cellpadding="0" border="0">
-$lines
-</table>
-
-$footer
\ No newline at end of file
diff --git a/templates/default/blame_line.tpl b/templates/default/blame_line.tpl
deleted file mode 100644
index 949617c..0000000
--- a/templates/default/blame_line.tpl
+++ /dev/null
@@ -1,5 +0,0 @@
-<tr>
-	<td class="lineheader" style="border-width: 0px 1px 1px 1px; width: 1%"><a href="$view">$revision</a></td>
-	<td class="lineheader" style="border-width: 0px 1px 1px 0px; width: 1%">$author</td>
-	<td class="code" style="border-width: 0px 1px 1px 0px">$line</td>
-</tr>
diff --git a/templates/default/browse.tpl b/templates/default/browse.tpl
deleted file mode 100644
index 0135165..0000000
--- a/templates/default/browse.tpl
+++ /dev/null
@@ -1,44 +0,0 @@
-$doctype
-<html lang="##LANG##" xml:lang="##XML-LANG##">
-<head>
-$headinclude
-	<title>{@"ViewSVN - Browse"}</title>
-</head>
-
-$header
-
-<div class="head">{@"Revision Information"}</div>
-<div class="content">
-	<div><strong>{@"Revision"}:</strong> $revision->revision</div>
-	<div><strong>{@"Author"}:</strong> $revision->author</div>
-	<div><strong>{@"Date"}:</strong> $revision->datetime</div>
-	<div><strong>{@"Message"}:</strong> $revision->message</div>
-</div>
-
-<div class="head" style="border-width: 0px 1px 1px 1px">
-	$navbar
-
-	<span style="font-weight: normal">
-		(
-		<a href="$link[log]">{@"View Log"}</a>
-
-		<if condition="$show['head']">
-			- <a href="$link[gohead]">{@"Go to HEAD"}</a>
-		</if>
-
-		<if condition="$show['diff']">
-			- <a href="$link[diff]">{@"View Changes"}</a>
-		</if>
-		)
-	</span>
-</div>
-<if condition="$show['props']">
-<div class="propbox">
-	<ul>
-	$proplist
-	</ul>
-</div>
-</if>
-$nodes
-
-$footer
\ No newline at end of file
diff --git a/templates/default/browse_node.tpl b/templates/default/browse_node.tpl
deleted file mode 100644
index 1388e85..0000000
--- a/templates/default/browse_node.tpl
+++ /dev/null
@@ -1,11 +0,0 @@
-<div class="content" style="border-width: 0px 1px 1px 1px">
-	<if condition="$isDir">
-		<a href="$itemLink"><strong>$item/</strong></a>
-	<else />
-		<a href="$itemLink">$item</a>
-	</if>
-	<!-- <span class="nodelink">
-		<if condition="$isDir"><a href="$blame">{@"Blame"}</a> - </if>
-		<a href="$log">{@"View Log"}</a>
-	</span> -->
-</div>
\ No newline at end of file
diff --git a/templates/default/bullet.gif b/templates/default/bullet.gif
deleted file mode 100644
index e1d3cb0..0000000
Binary files a/templates/default/bullet.gif and /dev/null differ
diff --git a/templates/default/code.css b/templates/default/code.css
deleted file mode 100644
index 891e240..0000000
--- a/templates/default/code.css
+++ /dev/null
@@ -1,108 +0,0 @@
-.code-block {
- border: 1px dotted #d7d7d7;
- margin: 1em 0;
- padding: .3em;
- overflow: auto
-}
-.image-file { background: #eee; padding: .3em }
-.image-file img { background: url(../imggrid.png) }
-
-/* Default */
-.css_default, .c_default, .code_default, .pl_default, .p_default,
-.hphp_default, .yaml_default, .code-block span {
- font-family: monospace;
-}
-
-/* Comments */
-.code-comment, .css_comment, .c_comment, .c_commentdoc, .c_commentline,
-.c_commentlinedoc, .h_comment,.pl_commentline, .p_commentblock,
-.p_commentline, .hphp_commentblock, .hphp_commentline,
-.yaml_comment {
- color: #998;
- font-style: italic;
-}
-
-/* Language keyword */
-.code-keyword, .pl_word  { color: #789; font-weight: bold }
-
-/* Type */
-.code-type, .c_word, .c_word2, .p_classname, .hphp_classname{
- color: #468;
- font-weight: bold;
-}
-
-/* Function */
-.code-func, .p_defname {
- color: #900;
- font-weight: bold;
- border-bottom: none;
-}
-
-/* Pre-processor */
-.code-prep, .c_preprocessor, .pl_preprocessor, .yaml_identifier {
- color: #999;
- font-weight: bold;
-}
-
-/* Language construct */
-.code-lang, .p_word { color: #000; font-weight: bold }
-
-/* String */
-.code-string, .c_string, .c_stringeol, .css_doublestring, .css_singlestring,
-.h_singlestring, .h_doublestring, .pl_string, .pl_string_q, .pl_string_qq,
-.pl_string_qr, .pl_string_qw, .pl_string_qx, .pl_backticks, .pl_character,
-.p_string, .p_stringeol, .hphp_string, .hphp_stringeol, .hphp_triple,
-.hphp_tripledouble, .p_character, .p_triple, .p_tripledouble {
- color: #b84;
- font-weight: normal;
-}
-
-/* Variable name */
-.code-var { color: #f9f }
-
-/* SilverCity-specific styles */
-.css_id, .css_class, .css_pseudoclass, .css_tag { color: #900000 }
-.css_directive { color: #009000; font-weight: bold }
-.css_important { color: blue }
-.css_operator { color: #000090; font-weight: bold }
-.css_tag { font-weight: bold }
-.css_unknown_identifier, .css_unknown_pseudoclass { color: red }
-.css_value { color: navy }
-.c_commentdockeyword { color: navy; font-weight: bold }
-.c_commentdockeyworderror { color: red; font-weight: bold }
-.c_character, .c_regex, .c_uuid, .c_verbatim { color: olive }
-.c_number { color: #099 }
-.h_asp { color: #ff0 }
-.h_aspat { color: #ffdf00 }
-.h_attribute { color: teal }
-.h_attributeunknown { color: red }
-.h_cdata { color: #ffdf00 }
-.h_entity { color: purple }
-.h_number { color: #099 }
-.h_other { color: purple }
-.h_script, .h_tag, .h_tagend { color: navy }
-.h_tagunknown { color: red }
-.h_xmlend, .h_xmlstart { color: blue }
-.pl_datasection { color: olive }
-.pl_error { color: red; font-weight: bold }
-.pl_hash { color: #000 }
-.pl_here_delim, .pl_here_q, .pl_here_qq, .pl_here_qx, .pl_longquote { color: olive }
-.pl_number { color: #099 }
-.pl_pod { font-style: italic }
-.pl_regex, .pl_regsubst { color: olive }
-.p_number { color: #099 }
-.hphp_character { color: olive }
-.hphp_defname { color: #099; font-weight: bold }
-.hphp_number { color: #099 }
-.hphp_word { color: navy; font-weight: bold }
-.yaml_document { color: gray; font-style: italic }
-.yaml_keyword { color: #808 }
-.yaml_number { color: #800 }
-.yaml_reference { color: #088 }
-.v_comment { color: gray; font-style: italic }
-.v_commentline, .v_commentlinebang { color: red; font-style: italic }
-.v_number, .v_preprocessor { color: #099 }
-.v_string, .v_stringeol { color: olive }
-.v_user{ color: blue; font-weight: bold }
-.v_word, .v_word3 { color: navy; font-weight: bold }
-.v_word2 { color: green; font-weight: bold }
diff --git a/templates/default/code2.css b/templates/default/code2.css
deleted file mode 100644
index 2b02122..0000000
--- a/templates/default/code2.css
+++ /dev/null
@@ -1,112 +0,0 @@
-/*=====================================================================*\
-|| ###################################################################
-|| # ViewSVN [#]version[#]
-|| # Copyright 2002-[#]year[#] Blue Static
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-/*
-* Colours adaptd from Trac by Edgewall Software (http://www.edgewall.com/trac/)
-* Trac is under the GNU GPL version 2
-*/
-
-/*
-* The definitions in this file apply to ALL types of highlighting. If you want to
-* add more definitions (from other types of keywords by GeSHi) then you can name them
-* ".code .CLASS_NAME" to have them apply to all languages. If you want to add or
-* override a definition for a specific language, use ".GESHI_LANGUAGE .CLASS_NAME".
-*
-* This works because the code is wrapped like this:
-* <div class="code">
-* 	<div class="GESHI_LANGUAGE">
-* 	</div>
-* </div>
-*/
-
-/* Key Words I (if, do, while, etc.) */
-.code .kw1
-{
-	color: #468;
-	font-weight: bold;
-}
-
-/* Key Words II (null, true, false, etc.) */
-.code .kw2
-{
-	color: #000;
-	font-weight: bold;
-}
-
-
-/* Built-in Functions */
-.code .kw3
-{
-	color: #900;
-	font-weight: bold;
-}
-
-/* Data Types (int, bool, etc) */
-.code .kw4
-{
-	color: #000;
-	font-weight: bold;
-}
-
-/* Comments */
-.code .co1, .code .co2, .code .coMULTI
-{
-	color: #998;
-	font-style: italic;
-}
-
-/* Strings */
-.code .st0
-{
-	color: #b84;
-}
-
-/* Methods */
-.code .me0
-{
-	color: #900;
-}
-
-/* Standard text without highlighting (default) */
-.code .de1, .code .de2
-{
-}
-
-/* Escaped characters */
-.code .es0
-{
-}
-
-/* Symbols [ ( { } ) ] */
-.code .br0
-{
-}
-
-/* Numbers */
-.code .nu0
-{
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
\ No newline at end of file
diff --git a/templates/default/diff.css b/templates/default/diff.css
deleted file mode 100644
index f20d12d..0000000
--- a/templates/default/diff.css
+++ /dev/null
@@ -1,56 +0,0 @@
-/*=====================================================================*\
-|| ###################################################################
-|| # ViewSVN [#]version[#]
-|| # Copyright 2002-[#]year[#] Blue Static
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-.lineheader
-{
-	background-color: rgb(222, 231, 248);
-}
-
-.diff_add
-{
-	background-color: rgb(221, 255, 221);
-}
-
-.diff_add_bit
-{
-	background-color: rgb(153, 238, 153);
-}
-
-.diff_del
-{
-	background-color: rgb(255, 211, 211);
-}
-
-.diff_del_bit
-{
-	background-color: rgb(238, 153, 153);
-}
-
-.diff_norm
-{
-	background-color: rgb(255, 255, 255);
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
\ No newline at end of file
diff --git a/templates/default/diff.tpl b/templates/default/diff.tpl
deleted file mode 100644
index b5612e9..0000000
--- a/templates/default/diff.tpl
+++ /dev/null
@@ -1,37 +0,0 @@
-$doctype
-<html lang="##LANG##" xml:lang="##XML-LANG##">
-<head>
-$headinclude
-	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/diff.css" media="screen" />
-	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/file.css" media="screen" />
-	<title>{@"Diff"}</title>
-</head>
-
-$header
-
-<div class="head">
-	$navbar
-
-	<span style="font-weight: normal">
-	(
-	<if condition="$show['fullchangeset']"><a href="$link[changeset]">{@"View Full Changeset"}</a> -</if>
-	<a href="$link[log]">{@"View Log"}</a>
-	)
-	</span>
-</div>
-<div class="content">
-	<div><strong>{@"Revision"}:</strong> $revision->revision</div>
-	<div><strong>{@"Author"}:</strong> $revision->author</div>
-	<div><strong>{@"Date"}:</strong> $revision->datetime</div>
-	<div><strong>{@"Message"}:</strong> $revision->message</div>
-</div>
-<div class="subhead" style="border-width: 0px 1px 0px 1px">{@"File Changes"}</div>
-<div class="content">
-$files
-</div>
-
-<br />
-
-$changes
-
-$footer
\ No newline at end of file
diff --git a/templates/default/diff_file.tpl b/templates/default/diff_file.tpl
deleted file mode 100644
index 6182880..0000000
--- a/templates/default/diff_file.tpl
+++ /dev/null
@@ -1,11 +0,0 @@
-<div class="head" style="border-width: 1px">$filename</div>
-<if condition="$show['props']">
-<div class="propbox">
-<ul>
-$proplist
-</ul>
-</div>
-</if>
-$hunktpl
-
-<br />
\ No newline at end of file
diff --git a/templates/default/diff_hunk.tpl b/templates/default/diff_hunk.tpl
deleted file mode 100644
index 19d6a19..0000000
--- a/templates/default/diff_hunk.tpl
+++ /dev/null
@@ -1,3 +0,0 @@
-<table width="100%" cellspacing="0" cellpadding="0" border="0">
-$lines
-</table>
diff --git a/templates/default/diff_line.tpl b/templates/default/diff_line.tpl
deleted file mode 100644
index f816e41..0000000
--- a/templates/default/diff_line.tpl
+++ /dev/null
@@ -1,13 +0,0 @@
-<if condition="$show['hunk']">
-	<tr>
-		<td class="subhead" style="border-width: 0px 1px 1px 1px; width: 1%"><a href="$rlow">r$low</a></td>
-		<td class="subhead" style="border-width: 0px 1px 1px 0px; width: 1%"><a href="$rhigh">r$high</a></td>
-		<td class="subhead" style="border-width: 0px 1px 1px 0px">&nbsp;</td>
-	</tr>
-<else />
-	<tr>
-		<td class="lineheader" style="border-width: 0px 1px 1px 1px"><if condition="$line['oldlineno']">$line[oldlineno]<else />&nbsp;</if></td>
-		<td class="lineheader" style="border-width: 0px 1px 1px 0px"><if condition="$line['newlineno']">$line[newlineno]<else />&nbsp;</if></td>
-		<td class="code + $class" style="border-width: 0px 1px 1px 0px"><if condition="$line['line_clean']">$line[line_clean]<else />&nbsp;</if></td>
-	</tr>
-</if>
\ No newline at end of file
diff --git a/templates/default/doctype.tpl b/templates/default/doctype.tpl
deleted file mode 100644
index c642479..0000000
--- a/templates/default/doctype.tpl
+++ /dev/null
@@ -1,2 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
\ No newline at end of file
diff --git a/templates/default/file.css b/templates/default/file.css
deleted file mode 100644
index ddd6d60..0000000
--- a/templates/default/file.css
+++ /dev/null
@@ -1,62 +0,0 @@
-/*=====================================================================*\
-|| ###################################################################
-|| # ViewSVN [#]version[#]
-|| # Copyright 2002-[#]year[#] Blue Static
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-.file_bit
-{
-	width: 12px;
-	height: 12px;
-
-	display: inline;
-	float: left;
-
-	border-color: rgb(153, 153, 153);
-	border-width: 1px;
-	border-style: solid;
-
-	margin-top: 1px;
-	margin-right: 5px;
-}
-
-.file_add
-{
-	background-color: rgb(187, 255, 187);
-}
-
-.file_modify
-{
-	background-color: rgb(255, 221, 136);
-}
-
-.file_delete
-{
-	background-color: rgb(255, 136, 136);
-}
-
-.file_move
-{
-	background-color: rgb(136, 136, 255);
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
\ No newline at end of file
diff --git a/templates/default/file_change.tpl b/templates/default/file_change.tpl
deleted file mode 100644
index 81f706e..0000000
--- a/templates/default/file_change.tpl
+++ /dev/null
@@ -1 +0,0 @@
-	<div><div class="file_bit + $class" title="$tooltip"></div> <a href="$link[file]">$file[value]</a> <if condition="$show['from']"><em>({@"from"} <a href="$viewsvn->path/$link[from]">$file[from]</a>)</em></if></div>
diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl
deleted file mode 100644
index 9a06836..0000000
--- a/templates/default/footer.tpl
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="footer">
-	<!-- please leave this copyright notice in place -->
-	<div>Powered by ViewSVN [#]version[#]</div>
-	<div>Copyright &copy;2002-$year, <a href="http://www.bluestatic.org" target="_blank">Blue Static</a></div>
-	<!-- / please leave this copyright notice in place -->
-</div>
-
-</body>
\ No newline at end of file
diff --git a/templates/default/head.gif b/templates/default/head.gif
deleted file mode 100644
index e6967b5..0000000
Binary files a/templates/default/head.gif and /dev/null differ
diff --git a/templates/default/header.tpl b/templates/default/header.tpl
deleted file mode 100644
index 5113772..0000000
--- a/templates/default/header.tpl
+++ /dev/null
@@ -1,18 +0,0 @@
-<body>
-
-<table width="100%">
-<tr>
-	<td><h1 style="display: inline">ViewSVN</h1></td>
-	<td style="text-align: right">
-		<if condition="$show['reposchooser']">
-		<form name="jumper" method="post" action="{BSRegister::Get('webpath')}/repository.php">
-			{@"Repository"}: <select name="repository">
-			$options
-			</select>
-
-			<input type="submit" name="submit" value="Go" />
-		</form>
-		</if>
-	</td>
-</tr>
-</table>
diff --git a/templates/default/headinclude.tpl b/templates/default/headinclude.tpl
deleted file mode 100644
index aec625b..0000000
--- a/templates/default/headinclude.tpl
+++ /dev/null
@@ -1 +0,0 @@
-	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/main.css" media="screen" />
\ No newline at end of file
diff --git a/templates/default/index.tpl b/templates/default/index.tpl
deleted file mode 100644
index 40c5e99..0000000
--- a/templates/default/index.tpl
+++ /dev/null
@@ -1,19 +0,0 @@
-$doctype
-<html lang="##LANG##" xml:lang="##XML-LANG##">
-<head>
-$headinclude
-	<title>{@"ViewSVN - Repositories"}</title>
-</head>
-
-$header
-
-<div style="width: 500px">
-	<div class="head">{@"Repositories"}</div>
-	<div class="content">
-		<ul class="reposlist">
-$nodes
-		</ul>
-	</div>
-</div>
-
-$footer
\ No newline at end of file
diff --git a/templates/default/index_node.tpl b/templates/default/index_node.tpl
deleted file mode 100644
index 8a184a6..0000000
--- a/templates/default/index_node.tpl
+++ /dev/null
@@ -1 +0,0 @@
-			<li><a href="{BSRegister::Get('webpath')}/browse/$repos:">$repos</a></li>
diff --git a/templates/default/log.tpl b/templates/default/log.tpl
deleted file mode 100644
index d61c982..0000000
--- a/templates/default/log.tpl
+++ /dev/null
@@ -1,15 +0,0 @@
-$doctype
-<html lang="##LANG##" xml:lang="##XML-LANG##">
-<head>
-$headinclude
-	<title>{@"ViewSVN - Log"}</title>
-</head>
-
-$header
-
-<div class="head" style="border-width: 1px">$navbar</div>
-$nodes
-
-$pagenav
-
-$footer
\ No newline at end of file
diff --git a/templates/default/log_node.tpl b/templates/default/log_node.tpl
deleted file mode 100644
index 5690a94..0000000
--- a/templates/default/log_node.tpl
+++ /dev/null
@@ -1,11 +0,0 @@
-<div class="subhead" style="border-width: 0px 1px 0px 1px">
-	r$log[revision] ($log[author])
-	$log[date]
-	- <a href="$link[view]">{@"View"}</a>
-	<if condition="!$isdir">- <a href="$link[blame]">{@"Blame"}</a></if>
-	- <a href="$link[diff]">{@"Changes"}</a></if>
-</div>
-<div class="content" style="padding: 4px">
-$log[message_clean]
-</div>
-
diff --git a/templates/default/main.css b/templates/default/main.css
deleted file mode 100644
index 5caf0df..0000000
--- a/templates/default/main.css
+++ /dev/null
@@ -1,150 +0,0 @@
-/*=====================================================================*\
-|| ###################################################################
-|| # ViewSVN [#]version[#]
-|| # Copyright 2002-[#]year[#] Blue Static
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-body
-{
-	font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
-	font-size: 12px;
-}
-
-a
-{
-	color: rgb(56, 95, 157);
-	text-decoration: none;
-}
-
-a:hover
-{
-	color: rgb(108, 154, 209);
-	text-decoration: underline;
-}
-
-.head
-{
-	background-color: rgb(59, 119, 216);
-	background-image: url(head.gif);
-	background-repeat: repeat-x;
-
-	font-weight: bold;
-	font-size: 13px;
-	color: rgb(255, 255, 255);
-
-	border-color: rgb(165, 165, 165);
-	border-width: 1px 1px 0px 1px;
-	border-style: solid;
-
-	padding: 5px;
-}
-
-	.head a
-	{
-		color: rgb(255, 255, 255);
-	}
-
-.subhead
-{
-	background-color: rgb(126, 144, 171);
-	background-image: url(subhead.gif);
-	background-repeat: repeat-x;
-
-	font-weight: bold;
-	font-size: 12px;
-	color: rgb(66, 66, 66);
-
-	border-color: rgb(165, 165, 165);
-	border-width: 1px 1px 0px 1px;
-	border-style: solid;
-
-	padding: 3px;
-}
-
-.content
-{
-	background-color: rgb(232, 237, 247);
-
-	border-color: rgb(165, 165, 165);
-	border-width: 1px 1px 1px 1px;
-	border-style: solid;
-
-	padding: 2px;
-}
-
-.code, .lineheader
-{
-	background-color: rgb(255, 255, 255);
-
-	font-family: monospace;
-	font-size: 11px;
-
-	border-color: rgb(165, 165, 165);
-	border-width: 1px 1px 1px 1px;
-	border-style: solid;
-
-	padding: 2px;
-}
-
-.propbox
-{
-	background-color: rgb(239, 239, 239);
-
-	border-color: rgb(153, 153, 153);
-	border-width: 1px 1px 1px 1px;
-	border-style: dashed;
-}
-
-.list, .propbox ul
-{
-	margin: 5px;
-	padding-left: 15px;
-}
-
-.list li, .propbox li
-{
-	margin: 0px;
-	padding: 0px;
-}
-
-.reposlist li
-{
-	list-style-image: url(bullet.gif);
-}
-
-.nodelink
-{
-	font-family: Courier, "Courier New", monospace, serif;
-	position: absolute;
-	left: 35%;
-}
-
-.footer
-{
-	margin-top: 10px;
-
-	text-align: right;
-
-	font-size: 10px;
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
\ No newline at end of file
diff --git a/templates/default/pagenav.tpl b/templates/default/pagenav.tpl
deleted file mode 100644
index f9067c1..0000000
--- a/templates/default/pagenav.tpl
+++ /dev/null
@@ -1,7 +0,0 @@
-<div>
-	<if condition="$show['first']"><a href="{$baselink}p=1">{@"First"}</a> ...</if>
-	<if condition="$show['prev']"><a href="{$baselink}p=$prevpage">{@"Prev"}</a> ...</if>
-$pagebits
-	<if condition="$show['next']">... <a href="{$baselink}p=$nextpage">{@"Next"}</a></if>
-	<if condition="$show['last']">... <a href="{$baselink}p={$paginator->getPageCount()}">{@"Last"}</a></if>
-</div>
\ No newline at end of file
diff --git a/templates/default/pagenav_bit.tpl b/templates/default/pagenav_bit.tpl
deleted file mode 100644
index 3782e30..0000000
--- a/templates/default/pagenav_bit.tpl
+++ /dev/null
@@ -1 +0,0 @@
-	<if condition="$nolink"><strong>$number</strong><else /><a href="{$baselink}p=$number">$number</a></if>
\ No newline at end of file
diff --git a/templates/default/property.tpl b/templates/default/property.tpl
deleted file mode 100644
index dfa51ad..0000000
--- a/templates/default/property.tpl
+++ /dev/null
@@ -1 +0,0 @@
-	<li>$data</li>
diff --git a/templates/default/select_option.tpl b/templates/default/select_option.tpl
deleted file mode 100644
index a949a6d..0000000
--- a/templates/default/select_option.tpl
+++ /dev/null
@@ -1 +0,0 @@
-		<option value="$value"<if condition="$selected"> selected="selected"</if>>$display</option>
diff --git a/templates/default/subhead.gif b/templates/default/subhead.gif
deleted file mode 100644
index c2ba7a2..0000000
Binary files a/templates/default/subhead.gif and /dev/null differ
diff --git a/templates/default/view.tpl b/templates/default/view.tpl
deleted file mode 100644
index de560fa..0000000
--- a/templates/default/view.tpl
+++ /dev/null
@@ -1,48 +0,0 @@
-$doctype
-<html lang="##LANG##" xml:lang="##XML-LANG##">
-<head>
-$headinclude
-	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/code2.css" media="screen" />
-	<title>{@"View"}</title>
-</head>
-
-$header
-
-<div class="head">{@"Revision Information"}</div>
-<div class="content">
-	<div><strong>{@"Revision"}:</strong> $revision->revision</div>
-	<div><strong>{@"Author"}:</strong> $revision->author</div>
-	<div><strong>{@"Date"}:</strong> $revision->datetime</div>
-	<div><strong>{@"Message"}:</strong> $revision->message</div>
-</div>
-
-<div class="head" style="border-width: 0px 1px 0px 1px">
-$navbar
-
-	<span style="font-weight: normal">
-	(
-	<a href="$link[log]">{@"View Log"}</a>
-	<if condition="$show['head']">
-		- <a href="$link[gohead]">{@"Go to HEAD"}</a>
-	</if>
-
-	<if condition="$show['diff']">
-		- <a href="$link[diff]">{@"View Changes"}</a>
-	</if>
-	)
-	</span>
-</div>
-
-<if condition="$show['props']">
-<div class="propbox">
-	<ul>
-	$proplist
-	</ul>
-</div>
-</if>
-
-<div class="code"<if condition="$show['props']"> style="border-top: none"</if>>
-$catdata
-</div>
-
-$footer
\ No newline at end of file
diff --git a/templates/diff.css b/templates/diff.css
new file mode 100644
index 0000000..f20d12d
--- /dev/null
+++ b/templates/diff.css
@@ -0,0 +1,56 @@
+/*=====================================================================*\
+|| ###################################################################
+|| # ViewSVN [#]version[#]
+|| # Copyright 2002-[#]year[#] Blue Static
+|| #
+|| # This program is free software; you can redistribute it and/or modify
+|| # it under the terms of the GNU General Public License as published by
+|| # the Free Software Foundation; version [#]gpl[#] of the License.
+|| #
+|| # This program is distributed in the hope that it will be useful, but
+|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+|| # more details.
+|| #
+|| # You should have received a copy of the GNU General Public License along
+|| # with this program; if not, write to the Free Software Foundation, Inc.,
+|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+|| ###################################################################
+\*=====================================================================*/
+
+.lineheader
+{
+	background-color: rgb(222, 231, 248);
+}
+
+.diff_add
+{
+	background-color: rgb(221, 255, 221);
+}
+
+.diff_add_bit
+{
+	background-color: rgb(153, 238, 153);
+}
+
+.diff_del
+{
+	background-color: rgb(255, 211, 211);
+}
+
+.diff_del_bit
+{
+	background-color: rgb(238, 153, 153);
+}
+
+.diff_norm
+{
+	background-color: rgb(255, 255, 255);
+}
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
\ No newline at end of file
diff --git a/templates/diff.tpl b/templates/diff.tpl
new file mode 100644
index 0000000..b5612e9
--- /dev/null
+++ b/templates/diff.tpl
@@ -0,0 +1,37 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/diff.css" media="screen" />
+	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/file.css" media="screen" />
+	<title>{@"Diff"}</title>
+</head>
+
+$header
+
+<div class="head">
+	$navbar
+
+	<span style="font-weight: normal">
+	(
+	<if condition="$show['fullchangeset']"><a href="$link[changeset]">{@"View Full Changeset"}</a> -</if>
+	<a href="$link[log]">{@"View Log"}</a>
+	)
+	</span>
+</div>
+<div class="content">
+	<div><strong>{@"Revision"}:</strong> $revision->revision</div>
+	<div><strong>{@"Author"}:</strong> $revision->author</div>
+	<div><strong>{@"Date"}:</strong> $revision->datetime</div>
+	<div><strong>{@"Message"}:</strong> $revision->message</div>
+</div>
+<div class="subhead" style="border-width: 0px 1px 0px 1px">{@"File Changes"}</div>
+<div class="content">
+$files
+</div>
+
+<br />
+
+$changes
+
+$footer
\ No newline at end of file
diff --git a/templates/diff_file.tpl b/templates/diff_file.tpl
new file mode 100644
index 0000000..6182880
--- /dev/null
+++ b/templates/diff_file.tpl
@@ -0,0 +1,11 @@
+<div class="head" style="border-width: 1px">$filename</div>
+<if condition="$show['props']">
+<div class="propbox">
+<ul>
+$proplist
+</ul>
+</div>
+</if>
+$hunktpl
+
+<br />
\ No newline at end of file
diff --git a/templates/diff_hunk.tpl b/templates/diff_hunk.tpl
new file mode 100644
index 0000000..19d6a19
--- /dev/null
+++ b/templates/diff_hunk.tpl
@@ -0,0 +1,3 @@
+<table width="100%" cellspacing="0" cellpadding="0" border="0">
+$lines
+</table>
diff --git a/templates/diff_line.tpl b/templates/diff_line.tpl
new file mode 100644
index 0000000..f816e41
--- /dev/null
+++ b/templates/diff_line.tpl
@@ -0,0 +1,13 @@
+<if condition="$show['hunk']">
+	<tr>
+		<td class="subhead" style="border-width: 0px 1px 1px 1px; width: 1%"><a href="$rlow">r$low</a></td>
+		<td class="subhead" style="border-width: 0px 1px 1px 0px; width: 1%"><a href="$rhigh">r$high</a></td>
+		<td class="subhead" style="border-width: 0px 1px 1px 0px">&nbsp;</td>
+	</tr>
+<else />
+	<tr>
+		<td class="lineheader" style="border-width: 0px 1px 1px 1px"><if condition="$line['oldlineno']">$line[oldlineno]<else />&nbsp;</if></td>
+		<td class="lineheader" style="border-width: 0px 1px 1px 0px"><if condition="$line['newlineno']">$line[newlineno]<else />&nbsp;</if></td>
+		<td class="code + $class" style="border-width: 0px 1px 1px 0px"><if condition="$line['line_clean']">$line[line_clean]<else />&nbsp;</if></td>
+	</tr>
+</if>
\ No newline at end of file
diff --git a/templates/doctype.tpl b/templates/doctype.tpl
new file mode 100644
index 0000000..c642479
--- /dev/null
+++ b/templates/doctype.tpl
@@ -0,0 +1,2 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
\ No newline at end of file
diff --git a/templates/file.css b/templates/file.css
new file mode 100644
index 0000000..ddd6d60
--- /dev/null
+++ b/templates/file.css
@@ -0,0 +1,62 @@
+/*=====================================================================*\
+|| ###################################################################
+|| # ViewSVN [#]version[#]
+|| # Copyright 2002-[#]year[#] Blue Static
+|| #
+|| # This program is free software; you can redistribute it and/or modify
+|| # it under the terms of the GNU General Public License as published by
+|| # the Free Software Foundation; version [#]gpl[#] of the License.
+|| #
+|| # This program is distributed in the hope that it will be useful, but
+|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+|| # more details.
+|| #
+|| # You should have received a copy of the GNU General Public License along
+|| # with this program; if not, write to the Free Software Foundation, Inc.,
+|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+|| ###################################################################
+\*=====================================================================*/
+
+.file_bit
+{
+	width: 12px;
+	height: 12px;
+
+	display: inline;
+	float: left;
+
+	border-color: rgb(153, 153, 153);
+	border-width: 1px;
+	border-style: solid;
+
+	margin-top: 1px;
+	margin-right: 5px;
+}
+
+.file_add
+{
+	background-color: rgb(187, 255, 187);
+}
+
+.file_modify
+{
+	background-color: rgb(255, 221, 136);
+}
+
+.file_delete
+{
+	background-color: rgb(255, 136, 136);
+}
+
+.file_move
+{
+	background-color: rgb(136, 136, 255);
+}
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
\ No newline at end of file
diff --git a/templates/file_change.tpl b/templates/file_change.tpl
new file mode 100644
index 0000000..81f706e
--- /dev/null
+++ b/templates/file_change.tpl
@@ -0,0 +1 @@
+	<div><div class="file_bit + $class" title="$tooltip"></div> <a href="$link[file]">$file[value]</a> <if condition="$show['from']"><em>({@"from"} <a href="$viewsvn->path/$link[from]">$file[from]</a>)</em></if></div>
diff --git a/templates/footer.tpl b/templates/footer.tpl
new file mode 100644
index 0000000..9a06836
--- /dev/null
+++ b/templates/footer.tpl
@@ -0,0 +1,8 @@
+<div class="footer">
+	<!-- please leave this copyright notice in place -->
+	<div>Powered by ViewSVN [#]version[#]</div>
+	<div>Copyright &copy;2002-$year, <a href="http://www.bluestatic.org" target="_blank">Blue Static</a></div>
+	<!-- / please leave this copyright notice in place -->
+</div>
+
+</body>
\ No newline at end of file
diff --git a/templates/head.gif b/templates/head.gif
new file mode 100644
index 0000000..e6967b5
Binary files /dev/null and b/templates/head.gif differ
diff --git a/templates/header.tpl b/templates/header.tpl
new file mode 100644
index 0000000..5113772
--- /dev/null
+++ b/templates/header.tpl
@@ -0,0 +1,18 @@
+<body>
+
+<table width="100%">
+<tr>
+	<td><h1 style="display: inline">ViewSVN</h1></td>
+	<td style="text-align: right">
+		<if condition="$show['reposchooser']">
+		<form name="jumper" method="post" action="{BSRegister::Get('webpath')}/repository.php">
+			{@"Repository"}: <select name="repository">
+			$options
+			</select>
+
+			<input type="submit" name="submit" value="Go" />
+		</form>
+		</if>
+	</td>
+</tr>
+</table>
diff --git a/templates/headinclude.tpl b/templates/headinclude.tpl
new file mode 100644
index 0000000..aec625b
--- /dev/null
+++ b/templates/headinclude.tpl
@@ -0,0 +1 @@
+	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/main.css" media="screen" />
\ No newline at end of file
diff --git a/templates/index.tpl b/templates/index.tpl
new file mode 100644
index 0000000..40c5e99
--- /dev/null
+++ b/templates/index.tpl
@@ -0,0 +1,19 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+	<title>{@"ViewSVN - Repositories"}</title>
+</head>
+
+$header
+
+<div style="width: 500px">
+	<div class="head">{@"Repositories"}</div>
+	<div class="content">
+		<ul class="reposlist">
+$nodes
+		</ul>
+	</div>
+</div>
+
+$footer
\ No newline at end of file
diff --git a/templates/index_node.tpl b/templates/index_node.tpl
new file mode 100644
index 0000000..8a184a6
--- /dev/null
+++ b/templates/index_node.tpl
@@ -0,0 +1 @@
+			<li><a href="{BSRegister::Get('webpath')}/browse/$repos:">$repos</a></li>
diff --git a/templates/log.tpl b/templates/log.tpl
new file mode 100644
index 0000000..d61c982
--- /dev/null
+++ b/templates/log.tpl
@@ -0,0 +1,15 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+	<title>{@"ViewSVN - Log"}</title>
+</head>
+
+$header
+
+<div class="head" style="border-width: 1px">$navbar</div>
+$nodes
+
+$pagenav
+
+$footer
\ No newline at end of file
diff --git a/templates/log_node.tpl b/templates/log_node.tpl
new file mode 100644
index 0000000..5690a94
--- /dev/null
+++ b/templates/log_node.tpl
@@ -0,0 +1,11 @@
+<div class="subhead" style="border-width: 0px 1px 0px 1px">
+	r$log[revision] ($log[author])
+	$log[date]
+	- <a href="$link[view]">{@"View"}</a>
+	<if condition="!$isdir">- <a href="$link[blame]">{@"Blame"}</a></if>
+	- <a href="$link[diff]">{@"Changes"}</a></if>
+</div>
+<div class="content" style="padding: 4px">
+$log[message_clean]
+</div>
+
diff --git a/templates/main.css b/templates/main.css
new file mode 100644
index 0000000..5caf0df
--- /dev/null
+++ b/templates/main.css
@@ -0,0 +1,150 @@
+/*=====================================================================*\
+|| ###################################################################
+|| # ViewSVN [#]version[#]
+|| # Copyright 2002-[#]year[#] Blue Static
+|| #
+|| # This program is free software; you can redistribute it and/or modify
+|| # it under the terms of the GNU General Public License as published by
+|| # the Free Software Foundation; version [#]gpl[#] of the License.
+|| #
+|| # This program is distributed in the hope that it will be useful, but
+|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+|| # more details.
+|| #
+|| # You should have received a copy of the GNU General Public License along
+|| # with this program; if not, write to the Free Software Foundation, Inc.,
+|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+|| ###################################################################
+\*=====================================================================*/
+
+body
+{
+	font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
+	font-size: 12px;
+}
+
+a
+{
+	color: rgb(56, 95, 157);
+	text-decoration: none;
+}
+
+a:hover
+{
+	color: rgb(108, 154, 209);
+	text-decoration: underline;
+}
+
+.head
+{
+	background-color: rgb(59, 119, 216);
+	background-image: url(head.gif);
+	background-repeat: repeat-x;
+
+	font-weight: bold;
+	font-size: 13px;
+	color: rgb(255, 255, 255);
+
+	border-color: rgb(165, 165, 165);
+	border-width: 1px 1px 0px 1px;
+	border-style: solid;
+
+	padding: 5px;
+}
+
+	.head a
+	{
+		color: rgb(255, 255, 255);
+	}
+
+.subhead
+{
+	background-color: rgb(126, 144, 171);
+	background-image: url(subhead.gif);
+	background-repeat: repeat-x;
+
+	font-weight: bold;
+	font-size: 12px;
+	color: rgb(66, 66, 66);
+
+	border-color: rgb(165, 165, 165);
+	border-width: 1px 1px 0px 1px;
+	border-style: solid;
+
+	padding: 3px;
+}
+
+.content
+{
+	background-color: rgb(232, 237, 247);
+
+	border-color: rgb(165, 165, 165);
+	border-width: 1px 1px 1px 1px;
+	border-style: solid;
+
+	padding: 2px;
+}
+
+.code, .lineheader
+{
+	background-color: rgb(255, 255, 255);
+
+	font-family: monospace;
+	font-size: 11px;
+
+	border-color: rgb(165, 165, 165);
+	border-width: 1px 1px 1px 1px;
+	border-style: solid;
+
+	padding: 2px;
+}
+
+.propbox
+{
+	background-color: rgb(239, 239, 239);
+
+	border-color: rgb(153, 153, 153);
+	border-width: 1px 1px 1px 1px;
+	border-style: dashed;
+}
+
+.list, .propbox ul
+{
+	margin: 5px;
+	padding-left: 15px;
+}
+
+.list li, .propbox li
+{
+	margin: 0px;
+	padding: 0px;
+}
+
+.reposlist li
+{
+	list-style-image: url(bullet.gif);
+}
+
+.nodelink
+{
+	font-family: Courier, "Courier New", monospace, serif;
+	position: absolute;
+	left: 35%;
+}
+
+.footer
+{
+	margin-top: 10px;
+
+	text-align: right;
+
+	font-size: 10px;
+}
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
\ No newline at end of file
diff --git a/templates/pagenav.tpl b/templates/pagenav.tpl
new file mode 100644
index 0000000..f9067c1
--- /dev/null
+++ b/templates/pagenav.tpl
@@ -0,0 +1,7 @@
+<div>
+	<if condition="$show['first']"><a href="{$baselink}p=1">{@"First"}</a> ...</if>
+	<if condition="$show['prev']"><a href="{$baselink}p=$prevpage">{@"Prev"}</a> ...</if>
+$pagebits
+	<if condition="$show['next']">... <a href="{$baselink}p=$nextpage">{@"Next"}</a></if>
+	<if condition="$show['last']">... <a href="{$baselink}p={$paginator->getPageCount()}">{@"Last"}</a></if>
+</div>
\ No newline at end of file
diff --git a/templates/pagenav_bit.tpl b/templates/pagenav_bit.tpl
new file mode 100644
index 0000000..3782e30
--- /dev/null
+++ b/templates/pagenav_bit.tpl
@@ -0,0 +1 @@
+	<if condition="$nolink"><strong>$number</strong><else /><a href="{$baselink}p=$number">$number</a></if>
\ No newline at end of file
diff --git a/templates/property.tpl b/templates/property.tpl
new file mode 100644
index 0000000..dfa51ad
--- /dev/null
+++ b/templates/property.tpl
@@ -0,0 +1 @@
+	<li>$data</li>
diff --git a/templates/select_option.tpl b/templates/select_option.tpl
new file mode 100644
index 0000000..a949a6d
--- /dev/null
+++ b/templates/select_option.tpl
@@ -0,0 +1 @@
+		<option value="$value"<if condition="$selected"> selected="selected"</if>>$display</option>
diff --git a/templates/subhead.gif b/templates/subhead.gif
new file mode 100644
index 0000000..c2ba7a2
Binary files /dev/null and b/templates/subhead.gif differ
diff --git a/templates/view.tpl b/templates/view.tpl
new file mode 100644
index 0000000..de560fa
--- /dev/null
+++ b/templates/view.tpl
@@ -0,0 +1,48 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+	<link rel="stylesheet" href="{BSRegister::Get('webpath')}/templates/default/code2.css" media="screen" />
+	<title>{@"View"}</title>
+</head>
+
+$header
+
+<div class="head">{@"Revision Information"}</div>
+<div class="content">
+	<div><strong>{@"Revision"}:</strong> $revision->revision</div>
+	<div><strong>{@"Author"}:</strong> $revision->author</div>
+	<div><strong>{@"Date"}:</strong> $revision->datetime</div>
+	<div><strong>{@"Message"}:</strong> $revision->message</div>
+</div>
+
+<div class="head" style="border-width: 0px 1px 0px 1px">
+$navbar
+
+	<span style="font-weight: normal">
+	(
+	<a href="$link[log]">{@"View Log"}</a>
+	<if condition="$show['head']">
+		- <a href="$link[gohead]">{@"Go to HEAD"}</a>
+	</if>
+
+	<if condition="$show['diff']">
+		- <a href="$link[diff]">{@"View Changes"}</a>
+	</if>
+	)
+	</span>
+</div>
+
+<if condition="$show['props']">
+<div class="propbox">
+	<ul>
+	$proplist
+	</ul>
+</div>
+</if>
+
+<div class="code"<if condition="$show['props']"> style="border-top: none"</if>>
+$catdata
+</div>
+
+$footer
\ No newline at end of file