]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Highlight matched part of project name when searching projects
[Gitweb] / gitweb.perl
index 3398de3323bfa232e49bebacab5e9b6fa0eb3b5f43591064aa3c68f4d208aa89..d82d6fb9e9900e667af89811e438258e60f1c275f581da826f617cbdb8418b97 100755 (executable)
@@ -5401,7 +5401,9 @@ sub git_project_list_rows {
                        print "</td>\n";
                }
                print "<td>" . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary"),
-                                       -class => "list"}, esc_html($pr->{'path'})) . "</td>\n" .
+                                       -class => "list"},
+                                      esc_html_match_hl($pr->{'path'}, $search_regexp)) .
+                     "</td>\n" .
                      "<td>" . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary"),
                                        -class => "list", -title => $pr->{'descr_long'}},
                                        esc_html($pr->{'descr'})) . "</td>\n" .
This page took 0.519861 seconds and 4 git commands to generate.