History

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.

Lars Hjemli committed 19 years ago

Commit 42e459b1 parent 0d05bca1 file · +1 −1Browse files

Unified · Split

ui-shared.c+1−1
@@ -305,7 +305,7 @@ void cgit_print_pageheader(char *title, int show_search) · 304 unmodified lines
305305 cgit_query_sha1, cgit_query_path);
306306 html(" ");
307307 cgit_tree_link("tree", NULL, NULL, cgit_query_head,
308− cgit_query_sha1, cgit_query_path);
308+ cgit_query_sha1, NULL);
309309 html(" ");
310310 cgit_commit_link("commit", NULL, NULL, cgit_query_head,
311311 cgit_query_sha1);