aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2007-06-27 00:32:03 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2007-06-27 00:32:08 (JST)
commit42e459bb1f209df8278f4f4f0ee3f4bcfae80da8 (patch)
tree1f5acb9111aef704d2d62009bd2f2dac416d84d3
parent0d05bca502f4a5347fa629045aca97ba9b404acc (diff)
downloadcgit-42e459bb1f209df8278f4f4f0ee3f4bcfae80da8.zip
cgit-42e459bb1f209df8278f4f4f0ee3f4bcfae80da8.tar.gz
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)
305 cgit_query_sha1, cgit_query_path); 305 cgit_query_sha1, cgit_query_path);
306 html(" "); 306 html(" ");
307 cgit_tree_link("tree", NULL, NULL, cgit_query_head, 307 cgit_tree_link("tree", NULL, NULL, cgit_query_head,
308 cgit_query_sha1, cgit_query_path); 308 cgit_query_sha1, NULL);
309 html(" "); 309 html(" ");
310 cgit_commit_link("commit", NULL, NULL, cgit_query_head, 310 cgit_commit_link("commit", NULL, NULL, cgit_query_head,
311 cgit_query_sha1); 311 cgit_query_sha1);