2012-09-16 13:17:56 +03:00
|
|
|
<!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:
|
2014-12-31 11:50:08 +02:00
|
|
|
% reltree = './'
|
2012-09-16 13:17:56 +03:00
|
|
|
% else:
|
2014-12-31 11:50:08 +02:00
|
|
|
% reltree = '../' * (len(dirname.split('/')) - 1)
|
2012-09-16 13:17:56 +03:00
|
|
|
% end
|
2014-12-31 11:50:08 +02:00
|
|
|
% relroot = reltree + '../' * (len(repo.branch.split('/')) - 1)
|
2012-09-16 13:17:56 +03:00
|
|
|
|
|
|
|
<title>git » {{repo.name}} »
|
|
|
|
{{repo.branch}} » {{dirname.unicode}}/{{fname.unicode}}</title>
|
|
|
|
<link rel="stylesheet" type="text/css"
|
|
|
|
href="{{relroot}}../../../../../static/git-arr.css"/>
|
|
|
|
<link rel="stylesheet" type="text/css"
|
|
|
|
href="{{relroot}}../../../../../static/syntax.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> »
|
2014-12-31 11:50:08 +02:00
|
|
|
<a href="{{reltree}}../">{{repo.branch}}</a> »
|
|
|
|
<a href="{{reltree}}">tree</a>
|
2012-09-16 13:17:56 +03:00
|
|
|
</h1>
|
|
|
|
|
|
|
|
<h3>
|
2014-12-31 11:50:08 +02:00
|
|
|
<a href="{{reltree}}">[{{repo.branch}}]</a> /
|
|
|
|
% base = smstr(reltree)
|
2012-09-16 13:17:56 +03:00
|
|
|
% for c in dirname.split('/'):
|
2014-06-30 09:02:18 +03:00
|
|
|
% if not c.raw:
|
|
|
|
% continue
|
|
|
|
% end
|
2012-09-16 13:17:56 +03:00
|
|
|
<a href="{{base.url}}{{c.url}}/">{{c.unicode}}</a> /
|
|
|
|
% base += c + '/'
|
|
|
|
% end
|
|
|
|
<a href="">{{!fname.html}}</a>
|
|
|
|
</h3>
|
|
|
|
|
2013-11-02 23:12:50 +02:00
|
|
|
% if can_embed_image(repo, fname.unicode):
|
2013-10-13 16:30:25 +03:00
|
|
|
{{!embed_image_blob(repo, dirname.raw, fname.raw)}}
|
2013-11-02 23:12:50 +02:00
|
|
|
% elif can_markdown(repo, fname.unicode):
|
2013-10-13 16:28:51 +03:00
|
|
|
{{!markdown_blob(blob)}}
|
|
|
|
% elif can_colorize(blob):
|
2012-09-16 13:17:56 +03:00
|
|
|
{{!colorize_blob(fname.unicode, blob)}}
|
|
|
|
% else:
|
|
|
|
<pre class="blob-body">
|
|
|
|
{{blob}}
|
|
|
|
</pre>
|
|
|
|
% end
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|