4c2a5bb83b7ed9146a45bb79685ef6a84346c362
[catagits/Gitalist.git] / templates / blob.tt2
1 [% PROCESS 'commit-nav.tt2' object = head %]
2 <link rel="stylesheet" type="text/css" href="/static/css/syntax-dark.css"/>
3 <div class='commit-message'>
4 [% head.comment.substr(0, 85) %] ...
5 </div>
6 <div class='path'>
7  <a href="/tree?p=[% project %];hb=[% head.sha1 %]">[% project %]</a>
8  [% # XXX The last part should link to blob_plain (or something) but doesn't ATM
9     FOREACH part IN filename.split('/') %]
10  / <a href="/tree?p=[% project %];hb=[% head.sha1 %]">[% part %]</a>
11  [% END %]
12 </div>
13 <div>
14  <pre class='blob'>[% blob %]</pre>
15 </div>
16
17 <!--
18 $Git_PurePerl_Object_Blob1 = bless( {
19                                content => "* Fix git_blob_plain i.e don't use the wrapper.\n",
20                                git     => bless( {
21                                             directory => {
22                                                            dirs     => [ '.' ],
23                                                            file_spec_class
24                                                                     => undef,
25                                                            volume   => ''
26                                                          },
27                                             gitdir    => {
28                                                            dirs     => [ '.git' ],
29                                                            file_spec_class
30                                                                     => undef,
31                                                            volume   => ''
32                                                          },
33                                             loose     => bless( { directory => {
34                                                            dirs     => [
35                                                                          '.git',
36                                                                          'objects'
37                                                                        ],
38                                                            file_spec_class
39                                                                     => undef,
40                                                            volume   => ''
41                                                          } }, 'Git::PurePerl::Loose' ),
42                                             packs     => [ bless( {
43                                                            fh      => bless( do{ require Symbol; Symbol::gensym }, 'IO::File' ),
44                                                            filename
45                                                                    => {
46                                                                         dir     => {
47                                                                                      dirs     => [
48                                                                                                    '.git',
49                                                                                                    'objects',
50                                                                                                    'pack'
51                                                                                                  ],
52                                                                                      file_spec_class
53                                                                                               => undef,
54                                                                                      volume   => ''
55                                                                                    },
56                                                                         file    => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.pack',
57                                                                         file_spec_class
58                                                                                 => undef
59                                                                       },
60                                                            index   => bless( {
61                                                                         fh       => bless( Symbol::gensym, 'IO::File' ),
62                                                                         filename => {
63                                                                                       dir     => {
64                                                                                                    dirs     => [
65                                                                                                                  '.git',
66                                                                                                                  'objects',
67                                                                                                                  'pack'
68                                                                                                                ],
69                                                                                                    file_spec_class
70                                                                                                             => undef,
71                                                                                                    volume   => ''
72                                                                                                  },
73                                                                                       file    => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.idx',
74                                                                                       file_spec_class
75                                                                                               => undef
76                                                                                     },
77                                                                         offsets  => [
78                                                                                       ( 0 ) x 23,
79                                                                                       ( 1 ) x 29,
80                                                                                       ( 2 ) x 11,
81                                                                                       ( 3 ) x 6,
82                                                                                       ( 4 ) x 22,
83                                                                                       ( 5 ) x 51,
84                                                                                       ( 6 ) x 78,
85                                                                                       ( 7 ) x 3,
86                                                                                       ( 8 ) x 34
87                                                                                     ],
88                                                                         size     => 8
89                                                                       }, 'Git::PurePerl::PackIndex::Version2' ),
90                                                            index_filename
91                                                                    => {
92                                                                         dir     => {
93                                                                                      dirs     => [
94                                                                                                    '.git',
95                                                                                                    'objects',
96                                                                                                    'pack'
97                                                                                                  ],
98                                                                                      file_spec_class
99                                                                                               => undef,
100                                                                                      volume   => ''
101                                                                                    },
102                                                                         file    => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.idx',
103                                                                         file_spec_class
104                                                                                 => undef
105                                                                       }
106                                                          }, 'Git::PurePerl::Pack::WithIndex' ) ]
107                                           }, 'Git::PurePerl' ),
108                                kind    => 'blob',
109                                sha1    => '8976ebc7df65475b3def53a1653533c3f61070d0',
110                                size    => 48
111                              }, 'Git::PurePerl::Object::Blob' );
112 bless( $Git_PurePerl_Object_Blob1->{git}{directory}, 'Path::Class::Dir' );
113 bless( $Git_PurePerl_Object_Blob1->{git}{gitdir}, 'Path::Class::Dir' );
114 bless( $Git_PurePerl_Object_Blob1->{git}{loose}{directory}, 'Path::Class::Dir' );
115 bless( $Git_PurePerl_Object_Blob1->{git}{packs}[0]{filename}{dir}, 'Path::Class::Dir' );
116 bless( $Git_PurePerl_Object_Blob1->{git}{packs}[0]{filename}, 'Path::Class::File' );
117 bless( $Git_PurePerl_Object_Blob1->{git}{packs}[0]{index}{filename}{dir}, 'Path::Class::Dir' );
118 bless( $Git_PurePerl_Object_Blob1->{git}{packs}[0]{index}{filename}, 'Path::Class::File' );
119 bless( $Git_PurePerl_Object_Blob1->{git}{packs}[0]{index_filename}{dir}, 'Path::Class::Dir' );
120 bless( $Git_PurePerl_Object_Blob1->{git}{packs}[0]{index_filename}, 'Path::Class::File' );
121 -->