about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-06-26 17:32:03 +0200
committerLars Hjemli <hjemli@gmail.com>2007-06-26 17:32:08 +0200
commit42e459bb1f209df8278f4f4f0ee3f4bcfae80da8 (patch)
tree1f5acb9111aef704d2d62009bd2f2dac416d84d3
parentAdd setting to enable/disable extra links on index page (diff)
downloadcgit-pink-42e459bb1f209df8278f4f4f0ee3f4bcfae80da8.tar.gz
cgit-pink-42e459bb1f209df8278f4f4f0ee3f4bcfae80da8.zip
Do not include current path in the "tree" menu link
When generating the menu links on repo pages the tree link included the
current path. This made the link pretty useless whenever the current path
was set so this commit just passes NULL instead.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--ui-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index a198cf2..64c237f 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -305,7 +305,7 @@ void cgit_print_pageheader(char *title, int show_search)
 			      cgit_query_sha1, cgit_query_path);
 		html(" ");
 		cgit_tree_link("tree", NULL, NULL, cgit_query_head,
-			       cgit_query_sha1, cgit_query_path);
+			       cgit_query_sha1, NULL);
 		html(" ");
 		cgit_commit_link("commit", NULL, NULL, cgit_query_head,
 			      cgit_query_sha1);
67ce4718ca94287a68e0babc715afcd21&follow=1'>Import LibreSSL 3.3.2June McEnroe 2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe 2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe