diff options
author | Thorsten Ortlepp <post@ortlepp.eu> | 2023-08-08 00:35:54 +0200 |
---|---|---|
committer | Thorsten Ortlepp <post@ortlepp.eu> | 2023-08-08 00:35:54 +0200 |
commit | 23f54e04bc0a66d52f523b56d4e8dc30bc84297f (patch) | |
tree | 2a2f564f641c2947e7b29c9e51a6778ca0835c05 | |
parent | 518188288e629b2a6912843f8c0dcc51960a22da (diff) | |
download | git-arr-fork-23f54e04bc0a66d52f523b56d4e8dc30bc84297f.zip |
Handle main branch the same way as master branch
-rw-r--r-- | views/summary.html | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ <hr/> % end +% if "main" in repo.branch_names(): +<div class="toggable-title" onclick="toggle('commits')"> + <a href="b/main/">commits (main)</a> +</div> +% 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 +<hr/> +<div class="toggable-title" onclick="toggle('ls')"> + <a href="b/main/t/">tree (main)</a> +</div> +% kwargs = dict(repo = repo, tree=repo.tree("main"), +% treeroot="b/main/t", dirname=smstr.from_url("")) +% include tree-list **kwargs +<hr/> +% end + <div class="toggable-title" onclick="toggle('branches')">branches</div> <table class="nice toggable" id="branches"> % for b in repo.branch_names(): |