aboutsummaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2011-06-22 13:50:46 +0200
committerJunio C Hamano <gitster@pobox.com>2011-06-22 14:04:32 -0700
commit6ee9033d6715db2f01aaf333a89e98b3b0079222 (patch)
treef723e800d1e6f65d2c97239c1bdb64ebc1a32033 /dir.c
parent2765233c64c35eb43a8b46c377fb8b464469221f (diff)
downloadgit-6ee9033d6715db2f01aaf333a89e98b3b0079222.tar.gz
git-6ee9033d6715db2f01aaf333a89e98b3b0079222.tar.xz
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 <link ...> 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 <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.c')
0 files changed, 0 insertions, 0 deletions