author | Lars Hjemli <hjemli@gmail.com> | 2007-06-26 15:32:03 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-26 15:32:08 (UTC) |
commit | 42e459bb1f209df8278f4f4f0ee3f4bcfae80da8 (patch) (side-by-side diff) | |
tree | 1f5acb9111aef704d2d62009bd2f2dac416d84d3 /ui-shared.c | |
parent | 0d05bca502f4a5347fa629045aca97ba9b404acc (diff) | |
download | cgit-42e459bb1f209df8278f4f4f0ee3f4bcfae80da8.zip cgit-42e459bb1f209df8278f4f4f0ee3f4bcfae80da8.tar.gz cgit-42e459bb1f209df8278f4f4f0ee3f4bcfae80da8.tar.bz2 |
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.c | 2 |
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 @@ -292,33 +292,33 @@ void cgit_print_pageheader(char *title, int show_search) html_attr(cgit_logo_link); htmlf("'><img src='%s' alt='logo'/></a>", cgit_logo); html("</td></tr>"); html("<tr><td id='crumb'>"); if (cgit_query_repo) { html_txt(cgit_repo->name); html(" ("); html_txt(cgit_query_head); html(") : "); reporevlink(NULL, "summary", NULL, NULL, cgit_query_head, NULL, NULL); html(" "); cgit_log_link("log", NULL, NULL, cgit_query_head, 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); html(" "); cgit_diff_link("diff", NULL, NULL, cgit_query_head, cgit_query_sha1, cgit_query_sha2, cgit_query_path); } else { html_txt("Index of repositories"); } html("</td>"); html("<td id='search'>"); if (show_search) { html("<form method='get' action='"); html_attr(cgit_currurl()); html("'>"); |