From bc6ec37107681719807fcc7edd0feb7a826ae0e5 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 27 Sep 2026 22:04:58 +0300 Subject: ui-shared: (THEME) Rename and reorder pageheader elements --- ui-shared.c | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/ui-shared.c b/ui-shared.c index 5b1273c..35202ed 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1087,39 +1087,32 @@ void cgit_print_pageheader(void) html("
\n"); if (ctx.env.authenticated && ctx.repo) { - if (ctx.repo->readme.nr) { - reporevlink("about", "about", NULL, - hc("about"), ctx.qry.head, NULL, - NULL); - html(" "); - } - cgit_summary_link("summary", NULL, hc("summary"), + cgit_summary_link("Summary", NULL, hc("summary"), ctx.qry.head); html(" "); - cgit_refs_link("refs", NULL, hc("refs"), ctx.qry.head, - ctx.qry.oid, NULL); - html(" "); - cgit_log_link("log", NULL, hc("log"), ctx.qry.head, - NULL, ctx.qry.vpath, 0, NULL, NULL, - ctx.qry.showmsg, ctx.qry.follow); - html(" "); if (ctx.qry.page && !strcmp(ctx.qry.page, "blame")) - cgit_blame_link("blame", NULL, hc("blame"), ctx.qry.head, + cgit_blame_link("@blame", NULL, hc("blame"), ctx.qry.head, ctx.qry.oid, ctx.qry.vpath); else - cgit_tree_link("tree", NULL, hc("tree"), ctx.qry.head, + cgit_tree_link("Files", NULL, hc("tree"), ctx.qry.head, ctx.qry.oid, ctx.qry.vpath); html(" "); - cgit_commit_link("commit", NULL, hc("commit"), + cgit_log_link("Commits", NULL, hc("log"), ctx.qry.head, + NULL, ctx.qry.vpath, 0, NULL, NULL, + ctx.qry.showmsg, ctx.qry.follow); + html(" "); + cgit_refs_link("Branches", NULL, hc("refs"), ctx.qry.head, + ctx.qry.oid, NULL); + html(" "); + cgit_commit_link("@commit", NULL, hc("commit"), ctx.qry.head, ctx.qry.oid, ctx.qry.vpath); html(" "); - cgit_diff_link("diff", NULL, hc("diff"), ctx.qry.head, + cgit_diff_link("@diff", NULL, hc("diff"), ctx.qry.head, ctx.qry.oid, ctx.qry.oid2, ctx.qry.vpath); - if (ctx.repo->max_stats) { - html(" "); - cgit_stats_link("stats", NULL, hc("stats"), + html(" "); + if (ctx.repo->max_stats) + cgit_stats_link("@stats", NULL, hc("stats"), ctx.qry.head, ctx.qry.vpath); - } if (ctx.repo->homepage) { html("