* Fix git_blob_plain i.e don't use the wrapper.
* An action to find what branches have been merged, either as a list or through a search mechanism.
* An action to find which branches a given commit is on.
+* Fix any not text/html bits e.g the patch action.
WRAPPER => 'default.tt2',
);
-# before end => sub {
-# my ( $self, $c ) = @_;
-# return unless $c->stash->{syntax_highlight};
-# $c->forward( 'View::SyntaxHighlight', $c->stash->{syntax_highlight} );
-# };
-
__PACKAGE__->meta->make_immutable(inline_constructor => 0);
-[% FOR act IN ['summary', 'shortlog', 'log', 'commit', 'commitdiff', 'tree'];
- ' | ' UNLESS loop.first;
- IF act == action;
- act;
- ELSE; -%]
- <a href="/[% act %]">[% act %]</a>
-[% END %]
+<div id='commit-nav'>
+ [%# XXX For the record these params are wrong (i.e sha1 will probably be wrong) and the actions don't exist i.e this is a shim -%]
+ [% IF project %]
+ <a href="/summary?p=[% project %]">summary</a> |
+ [% END %]
+ [% IF c.req.param('hb') %]
+ <a href="/shortlog?h=[% c.req.param('hb') %]">shortlog</a> |
+ [% END %]
+ [% IF c.req.param('hb') %]
+ <a href="/log?h=[% c.req.param('hb') %]">log</a> |
+ [% END %]
+ [% IF c.req.param('h') %]
+ <a href="/commit?h=[% c.req.param('h') %]">commit</a> |
+ [% END %]
+ [% IF c.req.param('h') %]
+ <a href="/commitdiff?h=[% c.req.param('h') %]">commitdiff</a> |
+ [% END %]
+ [% IF t %]
+ <a href="/tree?h=[% t %]">tree</a>
+ [% END %]
+</div>
[% IF baseurl %]
<base href="[% baseurl %]" />
[% END %]
+ <link rel="stylesheet" type="text/css" href="/static/css/site.css"/>
<link rel="stylesheet" type="text/css" href="[% stylesheet %]"/>
[% FOR link IN links %]
<link rel="[% link.rel %]"