diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-05-03 10:44:20 +0000 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-05-04 15:30:02 +0000 |
commit | 17890d0058c1555133c8767ceb123e809e6971ab (patch) | |
tree | e20eac18444fd75f6e25f03b6622245ca848d0d6 /ui-shared.c | |
parent | aa3c4486b41b8b13d0f52477f033837fc8bb9524 (diff) | |
download | cgit-17890d0058c1555133c8767ceb123e809e6971ab.tar cgit-17890d0058c1555133c8767ceb123e809e6971ab.tar.gz cgit-17890d0058c1555133c8767ceb123e809e6971ab.zip |
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 <hjemli@gmail.com>
Diffstat (limited to 'ui-shared.c')
-rw-r--r-- | ui-shared.c | 4 |
1 files changed, 2 insertions, 2 deletions
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("<td class='main'>"); 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("</td><td class='form'>"); html("<form method='get' action=''>\n"); add_hidden_formfields(0, 1, ctx->qry.page); |