From: Jakub Narebski Date: Wed, 22 Jun 2011 11:50:46 +0000 (+0200) Subject: gitweb: Refactor git_header_html X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/5a2e5c94a72bced582800308a3a24442a6cb93da9fe0bf0d59b2142b4aebd0b1?ds=sidebyside;hp=5a2e5c94a72bced582800308a3a24442a6cb93da9fe0bf0d59b2142b4aebd0b1 gitweb: Refactor git_header_html Extract the following parts into separate subroutines: * finding correct MIME content type for HTML pages (text/html or application/xhtml+xml?) into get_content_type_html() * printing elements in HTML head into print_header_links() * printing navigation "breadcrumbs" for given action into print_nav_breadcrumbs() * printing search form into print_search_form() This reduces git_header_html to two pages long (53 lines), making gitweb code easier to read. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano ---