Commit 07a4006
gitweb: Highlight matched part of project name when searching projects
Use esc_html_match_hl() introduced in previous commit to escape HTML
and mark match, using span element with 'match' class. Currently only
the 'path' part (i.e. the project name) is highlighted; match might be
on the project description. Highlighting match in description is left
for next commit.
The code makes use of the fact that defined $search_regexp means that
there was search going on.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 337da8d commit 07a4006
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5400 | 5400 | | |
5401 | 5401 | | |
5402 | 5402 | | |
5403 | | - | |
| 5403 | + | |
| 5404 | + | |
| 5405 | + | |
5404 | 5406 | | |
5405 | 5407 | | |
5406 | 5408 | | |
| |||
0 commit comments