author | Alberto Bertogli
<albertito@blitiri.com.ar> 2025-04-27 15:14:49 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2025-04-27 15:14:49 UTC |
parent | 722247c2be707ce594c84a6d9aec28b026af7042 |
views/branch.html | +4 | -5 |
views/summary.html | +9 | -9 |
views/tree.html | +1 | -2 |
diff --git a/views/branch.html b/views/branch.html index 799d040..6709cc8 100644 --- a/views/branch.html +++ b/views/branch.html @@ -35,15 +35,14 @@ % end % more = more and offset + 1 < repo.info.max_pages -% include paginate more = more, offset = offset +% include("paginate", more=more, offset=offset) -% kwargs = dict(repo=repo, commits=commits, -% shorten=shorten, repo_root=relroot + "../..") -% include commit-list **kwargs +% include("commit-list", repo=repo, commits=commits, shorten=shorten, +% repo_root=relroot + "../..") <p/> -% include paginate more = more, offset = offset +% include("paginate", more=more, offset=offset) </body> </html> diff --git a/views/summary.html b/views/summary.html index 9b180b8..50ae5cd 100644 --- a/views/summary.html +++ b/views/summary.html @@ -39,19 +39,19 @@ <div class="toggable-title" onclick="toggle('commits')"> <a href="b/{{repo.main_branch()}}/">commits ({{repo.main_branch()}})</a> </div> -% kwargs = dict(repo = repo, -% start_ref = "refs/heads/" + repo.main_branch(), -% limit = repo.info.commits_in_summary, -% shorten = shorten, repo_root = ".", offset = 0) -% include commit-list **kwargs +% include("commit-list", +% repo=repo, +% start_ref="refs/heads/" + repo.main_branch(), +% limit=repo.info.commits_in_summary, +% shorten=shorten, repo_root=".", offset=0) <hr/> <div class="toggable-title" onclick="toggle('ls')"> <a href="b/{{repo.main_branch()}}/t/">tree ({{repo.main_branch()}})</a> </div> -% kwargs = dict(repo = repo, tree=repo.tree(repo.main_branch()), -% treeroot="b/" + repo.main_branch() + "/t", -% dirname=smstr.from_url("")) -% include tree-list **kwargs +% include("tree-list", +% repo=repo, tree=repo.tree(repo.main_branch()), +% treeroot="b/" + repo.main_branch() + "/t", +% dirname=smstr.from_url("")) <hr/> % end diff --git a/views/tree.html b/views/tree.html index 179672d..d283f34 100644 --- a/views/tree.html +++ b/views/tree.html @@ -36,8 +36,7 @@ % end </h3> -% kwargs = dict(repo = repo, tree=tree, treeroot=".") -% include tree-list **kwargs +% include("tree-list", repo=repo, tree=tree, treeroot=".") </body> </html>