}
}
}
- document.location.href = "[% c.uri_for("/") %]" + repo + "/"+ sha1 + "/diff/" + sha2 + "/" + path;
+ document.location.href = "[% c.uri_for("/") %]" + repo + "/"+ sha2 + "/diff/" + sha1 + "/" + path;
}
// handles hover sub menus in IE
startList = function() {
<li id="branch_selector">
- [%# FIXME: convert to c.uri_for_action #%]
-
Branches
- <select onchange="document.location.href='/[% Repository.name %]/'+this.options[this.selectedIndex].text + '/shortlog';">
+ <select onchange="document.location.href='[% c.uri_for("/") %][% Repository.name %]/'+this.options[this.selectedIndex].text + '/shortlog';">
<option value="">HEAD</option>
[% FOREACH branch_head IN Repository.heads %]
action_output = action.key FILTER ucfirst;
NEXT IF action_output == action_name_ucfirst;
action = action.key;
- '<li><a href="/' _ c.req.path.replace(action_name, action) _ '">' _ action_output _ '</a></li>';
+ '<li><a href="' _ c.uri_for("/") _ c.req.path.replace(action_name, action) _ '">' _ action_output _ '</a></li>';
END;
'</ul>';
END;