From 6fbf6cb4c79a80b5b542f80d3c1ccf6743741414 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Thu, 15 May 2025 14:57:34 +1000 Subject: [PATCH] Implement themed tree page --- cgit.mk | 1 + cmd.c | 3 +- themed/base.html | 11 ++- themed/themed.in.css | 39 +++++++++ themed/tree.html | 197 +++++++++++++++++++++++++++++++++++++++++++ ui-tree.c | 12 ++- ui-tree.h | 5 +- 7 files changed, 262 insertions(+), 6 deletions(-) create mode 100644 themed/tree.html diff --git a/cgit.mk b/cgit.mk index e0e29a4..746ddae 100644 --- a/cgit.mk +++ b/cgit.mk @@ -104,6 +104,7 @@ CGIT_THEMED_INPUTS += $(CGIT_PREFIX)themed/commit.html CGIT_THEMED_INPUTS += $(CGIT_PREFIX)themed/log.html CGIT_THEMED_INPUTS += $(CGIT_PREFIX)themed/refs.html CGIT_THEMED_INPUTS += $(CGIT_PREFIX)themed/summary.html +CGIT_THEMED_INPUTS += $(CGIT_PREFIX)themed/tree.html CGIT_OBJS := $(addprefix $(CGIT_PREFIX),$(CGIT_OBJ_NAMES)) diff --git a/cmd.c b/cmd.c index 620a389..086c812 100644 --- a/cmd.c +++ b/cmd.c @@ -163,7 +163,8 @@ static void tag_fn(void) static void tree_fn(void) { - cgit_print_tree(ctx.qry.oid, ctx.qry.path); + //cgit_print_tree(ctx.qry.oid, ctx.qry.path); + cgit_print_tree(); } #define def_cmd(name, want_repo, want_vpath, is_clone) \ diff --git a/themed/base.html b/themed/base.html index 5386504..fdfa700 100644 --- a/themed/base.html +++ b/themed/base.html @@ -26,9 +26,7 @@ {{ ctx.repo->desc }} {% endblock %} -{% block repo_summary_bar %} -