From 80ef0017d47f536bf2c8c6af4b514efa50071a23 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sun, 16 Sep 2012 11:17:56 +0100 Subject: Initial commit Signed-off-by: Alberto Bertogli --- views/branch.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 views/branch.html (limited to 'views/branch.html') diff --git a/views/branch.html b/views/branch.html new file mode 100644 index 0000000..79ea880 --- /dev/null +++ b/views/branch.html @@ -0,0 +1,42 @@ + + + +git » {{repo.name}} » {{repo.branch}} + + + + + +

git » + {{repo.name}} » + {{repo.branch}} +

+ +

+Browse current source tree +

+ +% commits = repo.commits("refs/heads/" + repo.branch, +% limit = repo.info.commits_per_page, +% offset = repo.info.commits_per_page * offset) +% commits = list(commits) + +% if len(commits) == 0: +% abort(404, "No more commits") +% end + + +% include paginate nelem = len(commits), max_per_page = repo.info.commits_per_page, offset = offset + +% kwargs = dict(repo=repo, commits=commits, +% shorten=shorten, repo_root="../..") +% include commit-list **kwargs + +

+ +% include paginate nelem = len(commits), max_per_page = repo.info.commits_per_page, offset = offset + + + + -- cgit v1.2.3