{"thread":{"id":"29466","subject":"[PATCH 2/2] gitweb: place links to parent directories in page header","startedAt":"2012-01-29T16:07:43Z","lastAt":"2012-01-29T16:07:43Z","messageCount":1,"participants":["Bernhard R. Link"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"183255","messageId":"20120129160743.GB13937@server.brlink.eu","threadId":"29466","inReplyTo":null,"subject":"[PATCH 2/2] gitweb: place links to parent directories in page header","fromName":"Bernhard R. Link","fromEmail":"brl+git@mail.brlink.eu","sentAt":"2012-01-29T16:07:43Z","receivedAt":"2012-01-29T16:07:43Z","isPatch":true,"sender":{"key":"brl+git@mail.brlink.eu","avatar":null},"body":"Change html page headers to not only link the project root and the\ncurrently selected project but also the directories in between using\nproject_filter.\n\nSigned-off-by: Bernhard R. Link <brlink@debian.org>\n---\n gitweb/gitweb.perl |    5 ++++-\n 1 files changed, 4 insertions(+), 1 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex f0e03d8..e2a9146 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -3853,7 +3853,10 @@ sub print_nav_breadcrumbs {\n \n \tprint $cgi->a({-href => esc_url($home_link)}, $home_link_str) . \" / \";\n \tif (defined $project) {\n-\t\tprint $cgi->a({-href => href(action=>\"summary\")}, esc_html($project));\n+\t\tmy @dirname = split '/', $project;\n+\t\tmy $projectbasename = pop @dirname;\n+\t\tprint_nav_breadcrumbs_path(@dirname);\n+\t\tprint $cgi->a({-href => href(action=>\"summary\")}, esc_html($projectbasename));\n \t\tif (defined $action) {\n \t\t\tmy $action_print = $action ;\n \t\t\tif (defined $opts{-action_extra}) {\n-- \n1.7.8.3\n"}]}