Move all the templates back into the 'root' directory, otherwise make install will...
bobtfish [Mon, 2 Nov 2009 22:27:48 +0000 (22:27 +0000)]
23 files changed:
lib/Gitalist/View/Default.pm
root/_diff.tt2 [moved from templates/_diff.tt2 with 100% similarity]
root/_diff_tree.tt2 [moved from templates/_diff_tree.tt2 with 100% similarity]
root/_heads.tt2 [moved from templates/_heads.tt2 with 100% similarity]
root/_log_pager.tt2 [moved from templates/_log_pager.tt2 with 100% similarity]
root/_shortlog.tt2 [moved from templates/_shortlog.tt2 with 100% similarity]
root/_tree.tt2 [moved from templates/_tree.tt2 with 100% similarity]
root/blob.tt2 [moved from templates/blob.tt2 with 100% similarity]
root/blobdiff.tt2 [moved from templates/blobdiff.tt2 with 100% similarity]
root/commit.tt2 [moved from templates/commit.tt2 with 100% similarity]
root/commitdiff.tt2 [moved from templates/commitdiff.tt2 with 100% similarity]
root/default.tt2 [moved from templates/default.tt2 with 100% similarity]
root/gitweb.tt2 [moved from templates/gitweb.tt2 with 100% similarity]
root/heads.tt2 [moved from templates/heads.tt2 with 100% similarity]
root/index.tt2 [moved from templates/index.tt2 with 100% similarity]
root/log.tt2 [moved from templates/log.tt2 with 100% similarity]
root/nav/actions.tt2 [moved from templates/nav/actions.tt2 with 100% similarity]
root/nav/search.tt2 [moved from templates/nav/search.tt2 with 100% similarity]
root/reflog.tt2 [moved from templates/reflog.tt2 with 100% similarity]
root/search.tt2 [moved from templates/search.tt2 with 100% similarity]
root/shortlog.tt2 [moved from templates/shortlog.tt2 with 100% similarity]
root/summary.tt2 [moved from templates/summary.tt2 with 100% similarity]
root/tree.tt2 [moved from templates/tree.tt2 with 100% similarity]

index 6d8c404..278f419 100644 (file)
@@ -1,6 +1,5 @@
 package Gitalist::View::Default;
 use Moose;
-use Gitalist; # ->path_to
 use namespace::autoclean;
 
 extends 'Catalyst::View::TT';
@@ -28,8 +27,6 @@ it under the same terms as Perl itself.
 
 __PACKAGE__->config(
        TEMPLATE_EXTENSION => '.tt2',
-       # Set the location for TT files
-       INCLUDE_PATH       => [ Gitalist->path_to( 'templates' ) ],
        WRAPPER            => 'default.tt2',
 );
 
similarity index 100%
rename from templates/_diff.tt2
rename to root/_diff.tt2
similarity index 100%
rename from templates/_diff_tree.tt2
rename to root/_diff_tree.tt2
similarity index 100%
rename from templates/_heads.tt2
rename to root/_heads.tt2
similarity index 100%
rename from templates/_log_pager.tt2
rename to root/_log_pager.tt2
similarity index 100%
rename from templates/_shortlog.tt2
rename to root/_shortlog.tt2
similarity index 100%
rename from templates/_tree.tt2
rename to root/_tree.tt2
similarity index 100%
rename from templates/blob.tt2
rename to root/blob.tt2
similarity index 100%
rename from templates/blobdiff.tt2
rename to root/blobdiff.tt2
similarity index 100%
rename from templates/commit.tt2
rename to root/commit.tt2
similarity index 100%
rename from templates/commitdiff.tt2
rename to root/commitdiff.tt2
similarity index 100%
rename from templates/default.tt2
rename to root/default.tt2
similarity index 100%
rename from templates/gitweb.tt2
rename to root/gitweb.tt2
similarity index 100%
rename from templates/heads.tt2
rename to root/heads.tt2
similarity index 100%
rename from templates/index.tt2
rename to root/index.tt2
similarity index 100%
rename from templates/log.tt2
rename to root/log.tt2
similarity index 100%
rename from templates/nav/search.tt2
rename to root/nav/search.tt2
similarity index 100%
rename from templates/reflog.tt2
rename to root/reflog.tt2
similarity index 100%
rename from templates/search.tt2
rename to root/search.tt2
similarity index 100%
rename from templates/shortlog.tt2
rename to root/shortlog.tt2
similarity index 100%
rename from templates/summary.tt2
rename to root/summary.tt2
similarity index 100%
rename from templates/tree.tt2
rename to root/tree.tt2