From 5c46a55ba69406efe441af48b40bdedf56345c79 Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Sun, 16 Aug 2026 13:34:13 +0200 Subject: fix: Updated the structure in the header to resemble the original design, updated css to adapt to mobile phones --- ui-shared.c | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 9a33806..d8d5d76 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1022,17 +1022,30 @@ static void print_header(void) cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1); html(" ❧ "); cgit_summary_link(ctx.repo->name, NULL, NULL, NULL); + if (ctx.env.authenticated) { + html(""); + html("
\n"); + cgit_add_hidden_formfields(0, 1, ctx.qry.page); + html(" "); + html(""); + html("
"); + } } else { html(""); html_txt(ctx.cfg.root_title); html(""); } - html("\n"); - html(""); + html(""); if (ctx.repo) { html_txt(ctx.repo->desc); - html(""); + html(""); if (ctx.repo->owner_filter) { cgit_open_filter(ctx.repo->owner_filter); html_txt(ctx.repo->owner); @@ -1040,28 +1053,12 @@ static void print_header(void) } else { html_txt(ctx.repo->owner); } - html(""); - if (ctx.env.authenticated) { - html(""); - html("
\n"); - cgit_add_hidden_formfields(0, 1, ctx.qry.page); - html(" "); - html(""); - html("
"); - } - html(""); } else { if (ctx.cfg.root_desc) html_txt(ctx.cfg.root_desc); } - html("\n"); + html("\n"); } void cgit_print_pageheader(void) -- cgit