diff options
author | Thorsten Ortlepp <post@ortlepp.eu> | 2024-11-07 22:43:22 +0100 |
---|---|---|
committer | Thorsten Ortlepp <post@ortlepp.eu> | 2024-11-07 23:01:45 +0100 |
commit | fbf0764d5c9bf3b967fc36f4d2bb70030ebdc5a9 (patch) | |
tree | 55cfcad3fdf640dc102d3b50e4cb4470a5ee552c | |
parent | 4cce84502e206bab2942e33e73ba964f5664397c (diff) | |
download | git-arr-fork-fbf0764d5c9bf3b967fc36f4d2bb70030ebdc5a9.zip |
Fix templates for breaking change in Bottle 0.12+
-rw-r--r-- | views/branch.html | 6 | ||||
-rw-r--r-- | views/summary.html | 8 | ||||
-rw-r--r-- | 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) <p/> -% include paginate more = more, offset = offset +% include('paginate.html', more = more, offset = offset) </body> </html> 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) <hr/> <div class="toggable-title" onclick="toggle('ls')"> <a href="b/master/t/">tree (master)</a> </div> % 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) <hr/> % 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) <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 +% include('tree-list.html', **kwargs) <hr/> % 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 @@ </h3> % kwargs = dict(repo = repo, tree=tree, treeroot=".") -% include tree-list **kwargs +% include('tree-list.html', **kwargs) </body> </html> |