aboutsummaryrefslogtreecommitdiff
path: root/views/tree.html
blob: 6ac0136b91a1060f5c35c018ee4e1cad9293078b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>

% if not dirname.raw:
%     reltree = './'
% else:
%     reltree = '../' * (len(dirname.split('/')) - 1)
% end
% relroot = reltree + '../' * (len(branch.split('/')) - 1)

<title>git &raquo; {{repo.name}} &raquo;
    {{branch}} &raquo; {{dirname.raw if dirname.raw else '/'}}</title>
<link rel="stylesheet" type="text/css"
    href="{{relroot}}../../../../../static/git-arr.css"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name=viewport content="width=device-width, initial-scale=1">
</head>

<body class="tree">
<h1><a href="{{relroot}}../../../../../">git</a> &raquo;
    <a href="{{relroot}}../../../">{{repo.name}}</a> &raquo;
    <a href="{{reltree}}../">{{branch}}</a> &raquo;
    <a href="{{reltree}}">tree</a>
</h1>

<h3>
    <a href="{{reltree}}">[{{branch}}]</a> /
% base = smstr(reltree)
% for c in dirname.split('/'):
%   if not c.raw:
%     continue
%   end
    <a href="{{base.url}}{{c.url}}/">{{c.raw}}</a> /
%   base += c + '/'
% end
</h3>

% kwargs = dict(repo = repo, tree=tree, treeroot=".")
% include('tree-list.html', **kwargs)

</body>
</html>