From bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Thu, 18 Sep 2025 23:17:24 +0200 Subject: g2h: Add navbar --- g2h/log_page.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'g2h/log_page.py') diff --git a/g2h/log_page.py b/g2h/log_page.py index 4b8ee10..b8df839 100644 --- a/g2h/log_page.py +++ b/g2h/log_page.py @@ -13,11 +13,12 @@ def ref_names_for_commit(refs, commit_sha): return ref_names class LogPage(Page): - def __init__(self, out_dir, name, commits, branches, tags, content_subdir): + def __init__(self, out_dir, name, commits, branches, tags, content_subdir, latest_commit): super(LogPage, self).__init__('log.md', out_dir, 'l.md', name, content_subdir) self.commits = commits self.branches = branches self.tags = tags + self.latest_commit = latest_commit def _commits_with_refs(self): commits_context = [] @@ -40,6 +41,7 @@ class LogPage(Page): return { 'commits': commits_context, 'content_subdir': self.content_subdir, - 'title': self.name + ': Log' + 'title': self.name + ': Log', + 'this_commit': self.latest_commit } -- cgit v1.2.3