<h2>Branches</h2>
-[% subinclude('/fragment/repository/heads', c.req.captures) %]
\ No newline at end of file
+[% subinclude('/fragment/repository/heads', [Repository.name]) %]
[% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
<ul>
-
- [%# FIXME: tree path #%]
- [%- IF Repository %]
- [% SET tree_path = c.uri_for_action('/' _ path _ '/shortlog', c.req.captures).replace("/shortlog","/HEAD/tree") %]
- [% ELSE %]
- [% SET tree_path = c.uri_for_action('/' _ path _ '/tree', c.req.captures) %]
- [% END %]
-
- <li [% 'class="selected"' IF c.action.name.match('tree') %]><a href="[% tree_path %]" id="tree">Tree</a></li>
-
+ <li[% ' class="selected"' IF c.action.name.match('tree') %]><a href="[% c.uri_for_action('/ref/tree', c.req.captures) %]" id="tree">Tree</a></li>
- <li [% 'class="selected"' IF c.action.name.match('longlog') %]><a href="[% c.uri_for_action('/' _ path _ '/longlog', c.req.captures) %]" id="log_full">Long log</a></li>
+ <li[% ' class="selected"' IF c.action.name.match('longlog') %]><a href="[% c.uri_for_action('/' _ path _ '/longlog', c.req.captures) %]" id="log_full">Long log</a></li>
- <li [% 'class="selected"' IF c.action.name.match('shortlog') %]><a href="[% c.uri_for_action('/' _ path _ '/shortlog', c.req.captures) %]" id="log_short">Short log</a></li>
+ <li[% ' class="selected"' IF c.action.name.match('shortlog') %]><a href="[% c.uri_for_action('/' _ path _ '/shortlog', c.req.captures) %]" id="log_short">Short log</a></li>
<li id="branch_selector">
# URI tests for repo1
local *test = curry_test_uri('repo1');
test('search');
- test('reflog');
test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patch');
test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patches/1');