From fbf0764d5c9bf3b967fc36f4d2bb70030ebdc5a9 Mon Sep 17 00:00:00 2001 From: Thorsten Ortlepp Date: Thu, 7 Nov 2024 22:43:22 +0100 Subject: Fix templates for breaking change in Bottle 0.12+ --- views/branch.html | 6 +++--- views/summary.html | 8 ++++---- views/tree.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/views/branch.html b/views/branch.html index 799d040..da8d9d0 100644 --- a/views/branch.html +++ b/views/branch.html @@ -35,15 +35,15 @@ % end % more = more and offset + 1 < repo.info.max_pages -% include paginate more = more, offset = offset +% include('paginate.html', more = more, offset = offset) % kwargs = dict(repo=repo, commits=commits, % shorten=shorten, repo_root=relroot + "../..") -% include commit-list **kwargs +% include('commit-list.html', **kwargs)

-% include paginate more = more, offset = offset +% include('paginate.html', more = more, offset = offset) diff --git a/views/summary.html b/views/summary.html index dd310ad..905f2ee 100644 --- a/views/summary.html +++ b/views/summary.html @@ -42,14 +42,14 @@ % kwargs = dict(repo = repo, start_ref = "refs/heads/master", % limit = repo.info.commits_in_summary, % shorten = shorten, repo_root = ".", offset = 0) -% include commit-list **kwargs +% include('commit-list.html', **kwargs)


tree (master)
% kwargs = dict(repo = repo, tree=repo.tree("master"), % treeroot="b/master/t", dirname=smstr.from_url("")) -% include tree-list **kwargs +% include('tree-list.html', **kwargs)
% end @@ -60,14 +60,14 @@ % 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 +% include('commit-list.html', **kwargs)
tree (main)
% kwargs = dict(repo = repo, tree=repo.tree("main"), % treeroot="b/main/t", dirname=smstr.from_url("")) -% include tree-list **kwargs +% include('tree-list.html', **kwargs)
% end diff --git a/views/tree.html b/views/tree.html index 179672d..6ac0136 100644 --- a/views/tree.html +++ b/views/tree.html @@ -37,7 +37,7 @@ % kwargs = dict(repo = repo, tree=tree, treeroot=".") -% include tree-list **kwargs +% include('tree-list.html', **kwargs) -- cgit v1.2.3