summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2007-06-26 15:32:03 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-06-26 15:32:08 (UTC)
commit42e459bb1f209df8278f4f4f0ee3f4bcfae80da8 (patch) (unidiff)
tree1f5acb9111aef704d2d62009bd2f2dac416d84d3
parent0d05bca502f4a5347fa629045aca97ba9b404acc (diff)
downloadcgit-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>
Diffstat (more/less context) (ignore whitespace changes)
-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
@@ -292,33 +292,33 @@ void cgit_print_pageheader(char *title, int show_search)
292 html_attr(cgit_logo_link); 292 html_attr(cgit_logo_link);
293 htmlf("'><img src='%s' alt='logo'/></a>", cgit_logo); 293 htmlf("'><img src='%s' alt='logo'/></a>", cgit_logo);
294 html("</td></tr>"); 294 html("</td></tr>");
295 html("<tr><td id='crumb'>"); 295 html("<tr><td id='crumb'>");
296 if (cgit_query_repo) { 296 if (cgit_query_repo) {
297 html_txt(cgit_repo->name); 297 html_txt(cgit_repo->name);
298 html(" ("); 298 html(" (");
299 html_txt(cgit_query_head); 299 html_txt(cgit_query_head);
300 html(") : &nbsp;"); 300 html(") : &nbsp;");
301 reporevlink(NULL, "summary", NULL, NULL, cgit_query_head, 301 reporevlink(NULL, "summary", NULL, NULL, cgit_query_head,
302 NULL, NULL); 302 NULL, NULL);
303 html(" "); 303 html(" ");
304 cgit_log_link("log", NULL, NULL, cgit_query_head, 304 cgit_log_link("log", NULL, NULL, cgit_query_head,
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);
312 html(" "); 312 html(" ");
313 cgit_diff_link("diff", NULL, NULL, cgit_query_head, 313 cgit_diff_link("diff", NULL, NULL, cgit_query_head,
314 cgit_query_sha1, cgit_query_sha2, 314 cgit_query_sha1, cgit_query_sha2,
315 cgit_query_path); 315 cgit_query_path);
316 } else { 316 } else {
317 html_txt("Index of repositories"); 317 html_txt("Index of repositories");
318 } 318 }
319 html("</td>"); 319 html("</td>");
320 html("<td id='search'>"); 320 html("<td id='search'>");
321 if (show_search) { 321 if (show_search) {
322 html("<form method='get' action='"); 322 html("<form method='get' action='");
323 html_attr(cgit_currurl()); 323 html_attr(cgit_currurl());
324 html("'>"); 324 html("'>");