From: Petr Baudis Date: Thu, 2 Oct 2008 14:25:05 +0000 (+0200) Subject: gitweb: Identify all summary metadata table rows X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/e05bc45323b395d5e9f74b11709e98f1ae9e2c77ddee4b3a89ea4c44b52d4141 gitweb: Identify all summary metadata table rows In the metadata table of the summary page, all rows have their id (or class in case of URL) set now. This for example lets sites easily disable fields they do not want to show in their custom stylesheet (e.g. they are overly technical or irrelevant for the site). Signed-off-by: Petr Baudis Signed-off-by: Shawn O. Pearce --- diff --git a/gitweb.perl b/gitweb.perl index 87c50e6..cf4057a 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -4073,10 +4073,10 @@ sub git_summary { print "
 
\n"; print "\n" . - "\n" . - "\n"; + "\n" . + "\n"; if (defined $cd{'rfc2822'}) { - print "\n"; + print "\n"; } # use per project git URL list in $projectroot/$project/cloneurl @@ -4086,7 +4086,7 @@ sub git_summary { @url_list = map { "$_/$project" } @git_base_url_list unless @url_list; foreach my $git_url (@url_list) { next unless $git_url; - print "\n"; + print "\n"; $url_tag = ""; } print "
description" . esc_html($descr) . "
owner" . esc_html($owner) . "
description" . esc_html($descr) . "
owner" . esc_html($owner) . "
last change$cd{'rfc2822'}
last change$cd{'rfc2822'}
$url_tag$git_url
\n";