summaryrefslogtreecommitdiff
path: root/views/branch.html
blob: a49150e0e50c689b3bbe75490cf8efa101db0e03 (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
44
45
46
<!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>
<title>git &raquo; {{repo.name}} &raquo; {{repo.branch}}</title>
<link rel="stylesheet" type="text/css" href="../../../../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;
    <a href="./">{{repo.branch}}</a>
</h1>

<p>
<a class="explicit" href="t/">Browse current source tree</a>
</p>

% commits = repo.commits("refs/heads/" + repo.branch,
%                           limit = repo.info.commits_per_page + 1,
%                           offset = repo.info.commits_per_page * offset)
% commits = list(commits)

% if len(commits) == 0:
%   abort(404, "No more commits")
% end

% more = len(commits) > repo.info.commits_per_page
% if more:
%   commits = commits[:-1]
% end

% include paginate more = more, offset = offset

% kwargs = dict(repo=repo, commits=commits,
%               shorten=shorten, repo_root="../..")
% include commit-list **kwargs

<p/>

% include paginate more = more, offset = offset

</body>
</html>