diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2012-09-16 12:17:56 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2012-11-10 18:49:54 +0100 |
commit | 80ef0017d47f536bf2c8c6af4b514efa50071a23 (patch) | |
tree | db630a50bf30abca5a62cd206d8bc9abed61b4e0 /views/tree.html | |
download | git-arr-fork-0.01.zip |
Initial commit0.01
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'views/tree.html')
-rw-r--r-- | views/tree.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/views/tree.html b/views/tree.html new file mode 100644 index 0000000..9682065 --- /dev/null +++ b/views/tree.html @@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + +% if not dirname.raw: +% relroot = './' +% else: +% relroot = '../' * (len(dirname.split('/')) - 1) +% end + +<title>git » {{repo.name}} » + {{repo.branch}} » {{dirname.unicode}}</title> +<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="tree"> +<h1><a href="{{relroot}}../../../../../">git</a> » + <a href="{{relroot}}../../../">{{repo.name}}</a> » + <a href="{{relroot}}../">{{repo.branch}}</a> » + <a href="{{relroot}}">tree</a> +</h1> + +<h3> + <a href="{{relroot}}">[{{repo.branch}}]</a> / +% base = smstr(relroot) +% for c in dirname.split('/'): +% if not c.raw: continue + <a href="{{base.url}}{{c.url}}/">{{c.unicode}}</a> / +% base += c + '/' +% end +</h3> + +<table class="nice ls"> +% key_func = lambda (t, n, s): (0 if t == 'tree' else 1, n.raw) +% for type, name, size in sorted(tree.ls(dirname.raw), key = key_func): + <tr class="{{type}}"> +% if type == "blob": + <td class="name"><a href="./f={{name.url}}.html"> + {{!name.html}}</a></td> + <td class="size">{{size}}</td> +% elif type == "tree": + <td class="name"> + <a class="explicit" href="./{{name.url}}/"> + {{!name.html}}/</a></td> +% end + </tr> +% end +</table> + +</body> +</html> |