From 23f54e04bc0a66d52f523b56d4e8dc30bc84297f Mon Sep 17 00:00:00 2001 From: Thorsten Ortlepp Date: Tue, 8 Aug 2023 00:35:54 +0200 Subject: Handle main branch the same way as master branch --- views/summary.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'views') diff --git a/views/summary.html b/views/summary.html index d3388e6..dd310ad 100644 --- a/views/summary.html +++ b/views/summary.html @@ -53,6 +53,24 @@
% end +% if "main" in repo.branch_names(): +
+ commits (main) +
+% kwargs = dict(repo = repo, start_ref = "refs/heads/main", +% limit = repo.info.commits_in_summary, +% shorten = shorten, repo_root = ".", offset = 0) +% include commit-list **kwargs +
+
+ tree (main) +
+% kwargs = dict(repo = repo, tree=repo.tree("main"), +% treeroot="b/main/t", dirname=smstr.from_url("")) +% include tree-list **kwargs +
+% end +
branches
% for b in repo.branch_names(): -- cgit v1.2.3