c648cfb593
This patch moves the pages to HTML5, and adds some simple meta tags and CSS media constraints so things render better on mobile browsers, while leaving the desktop unaffected. It's still not ideal, though. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
81 lines
1.7 KiB
HTML
81 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>git » {{repo.name}}</title>
|
|
<link rel="stylesheet" type="text/css" href="../../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="summary">
|
|
<h1><a href="../../">git</a> » <a href="./">{{repo.name}}</a></h1>
|
|
|
|
<h2>{{repo.info.desc}}</h2>
|
|
|
|
|
|
% if repo.info.web_url or repo.info.git_url:
|
|
<table class="nice repo_info">
|
|
|
|
% if repo.info.web_url:
|
|
<tr>
|
|
<td class="category">website</td>
|
|
<td><a class="explicit" href="{{repo.info.web_url}}">
|
|
{{repo.info.web_url}}</a></td>
|
|
</tr>
|
|
% end
|
|
% if repo.info.git_url:
|
|
<tr>
|
|
<td class="category">repository</td>
|
|
<td>{{! '<br/>'.join(repo.info.git_url.split())}}</td>
|
|
</tr>
|
|
% end
|
|
|
|
</table>
|
|
<hr/>
|
|
% end
|
|
|
|
% if "master" in repo.branch_names():
|
|
% kwargs = dict(repo = repo, start_ref = "refs/heads/master",
|
|
% limit = repo.info.commits_in_summary,
|
|
% shorten = shorten, repo_root = ".", offset = 0)
|
|
% include commit-list **kwargs
|
|
<hr/>
|
|
% end
|
|
|
|
<table class="nice">
|
|
<tr>
|
|
<th>branches</th>
|
|
</tr>
|
|
|
|
% for b in repo.branch_names():
|
|
<tr>
|
|
<td class="main"><a href="b/{{b}}/">{{b}}</a></td>
|
|
<td class="links">
|
|
<a class="explicit" href="b/{{b}}/">commits</a></td>
|
|
<td class="links">
|
|
<a class="explicit" href="b/{{b}}/t/">tree</a></td>
|
|
</tr>
|
|
%end
|
|
</table>
|
|
|
|
<hr/>
|
|
|
|
% tags = list(repo.tags())
|
|
% if tags:
|
|
<table class="nice">
|
|
<tr>
|
|
<th>tags</th>
|
|
</tr>
|
|
|
|
% for name, obj_id in tags:
|
|
<tr>
|
|
<td><a href="c/{{obj_id}}/">{{name}}</a></td>
|
|
</tr>
|
|
%end
|
|
</table>
|
|
% end
|
|
|
|
</body>
|
|
</html>
|
|
|