From: Jakub Narebski Date: Thu, 25 Jun 2009 23:01:27 GMT Subject: Re: [PATCHv6 1/8] gitweb: refactor author name insertion Message-ID: <200906260101.28054.jnareb@gmail.com> In-Reply-To: <200906260055.11347.jnareb@gmail.com> On Fri, 26 June 2009, Jakub Narebski wrote: > On Thu, 25 June 2009, Giuseppe Bilotta wrote: > > @@ -5094,9 +5127,9 @@ sub git_log { > > " | " . > > $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree") . > > "
\n" . > > - "\n" . > > - "" . esc_html($co{'author_name'}) . " [$ad{'rfc2822'}]
\n" . > > "\n"; > > + git_print_authorship(\%co); > > + print "
\n\n"; > > > > print "
\n"; > > git_print_log($co{'comment'}, -final_empty_line=> 1); > > Here you replace inline element with
_block_ element, > destroying layout. Replacing default of 'div' by default of > inline element restores old layout. Note: here we want . > > @@ -5579,7 +5595,7 @@ sub git_commitdiff { > > git_header_html(undef, $expires); > > git_print_page_nav('commitdiff','', $hash,$co{'tree'},$hash, $formats_nav); > > git_print_header_div('commit', esc_html($co{'title'}) . $ref, $hash); > > - git_print_authorship(\%co); > > + git_print_authorship(\%co, 'localtime' => 1); > > print "
\n"; > > if (@{$co{'comment'}} > 1) { > > print "
\n"; Note: here we want
. Whether default would be 'span' or 'div', at least one of those has to pass explicit 'tag' / '-tag' parameter. I guess it would be easier to pass 'tag' => 'span' in git_log(). -- Jakub Narebski Poland