From 17890d0058c1555133c8767ceb123e809e6971ab Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 3 May 2008 12:44:20 +0200 Subject: Add link to index page from repo header, remove page name This makes it more obvious how to get back to the index, especially when the config option `logo-link` is used. And the page name displayed in the header provided no extra information. It only consumed space and deserved to die. While at it, make sure that the different parts of the header doesn't wrap when horizontal space is limited. Signed-off-by: Lars Hjemli --- cgit.css | 3 +++ ui-shared.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cgit.css b/cgit.css index fac5f85..a37d218 100644 --- a/cgit.css +++ b/cgit.css @@ -36,6 +36,7 @@ table#header td.logo { table#header td.main { font-size: 250%; padding-left: 10px; + white-space: nowrap; } table#header td.main a { @@ -47,6 +48,7 @@ table#header td.form { vertical-align: bottom; padding-right: 1em; padding-bottom: 2px; + white-space: nowrap; } table#header td.form form, @@ -92,6 +94,7 @@ table.tabs td.form { table.tabs td.form form { padding-bottom: 2px; font-size: 90%; + white-space: nowrap; } table.tabs td.form input, diff --git a/ui-shared.c b/ui-shared.c index 44269a7..cd98387 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -545,10 +545,10 @@ void cgit_print_pageheader(struct cgit_context *ctx) html(""); if (ctx->repo) { + cgit_index_link("index", NULL, NULL, NULL, 0); + html(" : "); reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), ctx->qry.head, NULL, NULL); - html(" : "); - html_txt(ctx->qry.page); html(""); html("
\n"); add_hidden_formfields(0, 1, ctx->qry.page); -- cgit 1.4.1 tion>
Commit message (Collapse)Author
2019-05-20Fix comparison warning in ttpreJune McEnroe
2019-05-20Add AuthorityJune McEnroe
2019-05-19Specify precedence of unary versions of operatorsJune McEnroe
2019-05-18Add compound assignment operators to orderJune McEnroe
2019-05-15Support simple assignment in orderJune McEnroe
2019-05-15Implement sizeof in orderJune McEnroe
2019-05-15Add orderJune McEnroe
2019-05-12Add T suffix in bitJune McEnroe
2019-05-10Highlight yacc and lex files as CJune McEnroe
Their %-prefixed directives should probably be highlighted Macro.
2019-05-10Use val instead of suboptargJune McEnroe
suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure?
2019-05-09Add Parable of the SowerJune McEnroe
2019-05-07Add bit without buildJune McEnroe
Need to do some stuff in the Makefile for lex and yacc and generating HTML pages for it.
2019-05-04Fix MANDIR typoJune McEnroe
2019-05-04Move relay to binJune McEnroe