about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-05-03 12:44:20 +0200
committerLars Hjemli <hjemli@gmail.com>2008-05-04 17:30:02 +0200
commit17890d0058c1555133c8767ceb123e809e6971ab (patch)
treee20eac18444fd75f6e25f03b6622245ca848d0d6
parentAdd footer with page creation time and cgit version on all pages (diff)
downloadcgit-pink-17890d0058c1555133c8767ceb123e809e6971ab.tar.gz
cgit-pink-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 '')
-rw-r--r--cgit.css3
-rw-r--r--ui-shared.c4
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("<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);
colspan='3' class='logmsg'> Finally! Changing the message visibility threshold doesn't totally screw up scroll position. Neither do horizontal resizes, but vertical resizes drift because the value of windowTop() changes before and after... The scroll position is anchored to the top of the window. It's arbitrary whether to anchor the top or the bottom, but other scrolling commands like M-p and C-r are anchored to the top, so this is consistent. 2021-01-26Add numbers to buffer linesJune McEnroe This directly correlates hard-wrapped lines with the soft lines they were wrapped from. Choosing uint here because it doesn't change the size of struct Line. It doesn't at all matter since buffers only hold 1024 lines at a time anyway. 2021-01-26Rename and move scroll functions closer to where they are usedJune McEnroe 2021-01-26Factor out windowReflowJune McEnroe 2021-01-26Use Warm heat for replies to user-initiated commandsJune McEnroe Otherwise they are invisible with M-+ and commands having no output is confusing. 2021-01-26Clarify configuration path interpretationsJune McEnroe 2021-01-26Tighten up XDG base directory path handlingJune McEnroe Don't search base directories if path starts with "/", "./" or "../", but still do if the path simply starts with ".". Bail early if HOME is needed but unset. Don't attempt to open the original path in configOpen and dataOpen. 2021-01-26Expand the opening paragraph of the manualJune McEnroe 2021-01-25Disable notify in restricted modeJune McEnroe catgirl shouldn't try to execute a command if it is misconfigured with both restrict and notify. 2021-01-25Don't print timestamps for blank lines in bufferListJune McEnroe 2021-01-25Do not copy time to wrapped linesJune McEnroe 2021-01-25Add protocol coverage to non-features listJune McEnroe I don't feel that 100% protocol extension support should at all be a goal. 2021-01-25Move mention of pledge(2) and unveil(2) to READMEJune McEnroe The manual is the wrong place to document platform support. 2021-01-23Preserve order of filters when removingJune McEnroe Filters should be kept in order since the first one that matches, wins. This lets highlights or ignores take priority over each other, if desired. 2021-01-23Fix /unignore commandJune McEnroe Yikes, copy-paste fail. 2021-01-23Remove use of "%n" to appease de RaadtJune McEnroe Sure, it was completely unnecessary, but I resent being told how to use snprintf. https://cvsweb.openbsd.org/src/lib/libc/stdio/vfprintf.c?rev=1.79&content-type=text/x-cvsweb-markup Notes: My problem here is with yelling about a standard C feature that has legitimate uses, simply because it *could* be used in a way that might cause security issues. If you're going to do that, you may as well syslog(3) whenever someone runs any C code at all. 2021-01-23Drop filesystem access iff possibleKlemens Nanni Log files and state save/restore both require read/write access to the filesystem, both during start and exit. If neither features are used, catgirl may run with "stdio tty". 2021-01-23Drop exec capability iff restrictedKlemens Nanni Nothing must be executed when running /copy, et al. 2021-01-23Drop network capability after ircConnect()Klemens Nanni catgirl has no reconnect feature and generally must not do anything but read/write from/to the connected socket which does not require "inet" or "dns" promises. 2021-01-23Call pledge(2) after unveil(2)Klemens Nanni Simplify logic, be more idiomatic and finalize by pledging after all unveiling is done by omitting the "unveil" promise and thereby not allowing further calls to it. 2021-01-23Separate kiosk mode from restrict mode