]> Lady’s Gitweb - Gitweb/commit
gitweb: Highlight matched part of project description when searching projects
authorJakub Narebski <redacted>
Mon, 27 Feb 2012 01:55:21 +0000 (02:55 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commit22a5f402b5fe2fc5fcf212d33915975a73c1d205cb21e956821b2b5c9a985770
tree47d99302e96843fe2a8ce1ad4b21697ed036d10e69feca7b0f11f56fd54b7b7b
parent8fb8b3b4b444f368efb7d8ab4fab297372e643dd6f582db0ef8d0a5147fa76e5
gitweb: Highlight matched part of project description when searching projects

Use esc_html_match_hl() from earlier commit to mark match in the
_whole_ description when searching projects.

Currently, with this commit, when searching projects there is always
shown full description of a project, and not a shortened one (like for
ordinary projects list view), even if the match is on project name and
not project description.  Because we always show full description of a
project, and not possibly shortened name, there is no need for having
full description on mouseover via title attribute.

Showing full description when there is match on it is useful to avoid
situation where match is in shortened, invisible part.  On the other
hand that makes project search different than projects list view; also
there can be problems with overly-long project descriptions.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.179499 seconds and 4 git commands to generate.