major design changes - almost there
[catagits/Gitalist.git] / root / nav / path.tt2
1  <a href="[% c.uri_for_action("/ref/tree", [Repository.name, Commit.sha1]) %]">[% Repository.name %] (tree)</a>
2  [% FOREACH part IN filename.split('/') %]
3   [% path = loop.first ? part : path _ '/' _ part %]
4   / <a href="[% action_name = loop.last ? '/ref/blob' : '/ref/tree'; c.uri_for_action(action_name, [Repository.name,Commit.sha1], path.to_path ) %]">[% part %]</a>
5  [% END %]
6