@matheusbsbs / matheus-bagliano / commits / 26d0a976e8
Fork 0

Make path in tree view look nicer

Based on talk on the IRC with Junio some evenings ago, I've updated the path showing in tree view to look better and sent updated patches privately, but it seems the old version ended up being used, so here's the new one again. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>

Petr Baudis committed Sep 23, 2006 at 01:00 UTC 26d0a976e88cf2e1ccb0b4d8172e9ce24d144d1f
1 file changed +5 -5
gitweb/gitweb.perl
+5 -5
@@ -1520,14 +1520,14 @@ sub git_print_page_path {
1520
1521 print "<div class=\"page_path\">";
1522 print $cgi->a({-href => href(action=>"tree", hash_base=>$hb),
1523 - -title => '/'}, '/');
1524 - print " ";
1523 + -title => 'tree root'}, "[$project]");
1524 + print " / ";
1525 foreach my $dir (@dirname) {
1526 $fullname .= ($fullname ? '/' : '') . $dir;
1527 print $cgi->a({-href => href(action=>"tree", file_name=>$fullname,
1528 hash_base=>$hb),
1529 - -title => $fullname}, esc_html($dir . '/'));
1530 - print " ";
1529 + -title => $fullname}, esc_html($dir));
1530 + print " / ";
1531 }
1532 if (defined $type && $type eq 'blob') {
1533 print $cgi->a({-href => href(action=>"blob_plain", file_name=>$file_name,
@@ -1536,7 +1536,7 @@ sub git_print_page_path {
1536 } elsif (defined $type && $type eq 'tree') {
1537 print $cgi->a({-href => href(action=>"tree", file_name=>$file_name,
1538 hash_base=>$hb),
1539 - -title => $name}, esc_html($basename . '/'));
1539 + -title => $name}, esc_html($basename));
1540 } else {
1541 print esc_html($basename);
1542 }