aboutsummaryrefslogtreecommitdiff
path: root/views/branch.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/branch.html')
-rw-r--r--views/branch.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/views/branch.html b/views/branch.html
index 1cc011d..0d3e891 100644
--- a/views/branch.html
+++ b/views/branch.html
@@ -2,14 +2,17 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
+
+% relroot = '../' * (len(repo.branch.split('/')) - 1)
+
<title>git &raquo; {{repo.name}} &raquo; {{repo.branch}}</title>
-<link rel="stylesheet" type="text/css" href="../../../../static/git-arr.css"/>
+<link rel="stylesheet" type="text/css" href="{{relroot}}../../../../static/git-arr.css"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body class="branch">
-<h1><a href="../../../../">git</a> &raquo;
- <a href="../../">{{repo.name}}</a> &raquo;
+<h1><a href="{{relroot}}../../../../">git</a> &raquo;
+ <a href="{{relroot}}../../">{{repo.name}}</a> &raquo;
<a href="./">{{repo.branch}}</a>
</h1>
@@ -35,7 +38,7 @@
% include paginate more = more, offset = offset
% kwargs = dict(repo=repo, commits=commits,
-% shorten=shorten, repo_root="../..")
+% shorten=shorten, repo_root=relroot + "../..")
% include commit-list **kwargs
<p/>