Browse Source

Merge branch 'jn/web'

maint
Junio C Hamano 19 years ago
parent
commit
6295ac347a
  1. 14
      gitweb/gitweb.perl

14
gitweb/gitweb.perl

@ -1003,7 +1003,7 @@ sub git_get_paging_nav {
if ($page > 0) { if ($page > 0) {
$paging_nav .= " ⋅ " . $paging_nav .= " ⋅ " .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$action;h=$hash;pg=" . ($page-1)), $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$action;h=$hash;pg=" . ($page-1)),
-accesskey => "p", -title => "Alt-p"}, "prev"); -accesskey => "p", -title => "Alt-p"}, "prev");
} else { } else {
$paging_nav .= " ⋅ prev"; $paging_nav .= " ⋅ prev";
} }
@ -1011,7 +1011,7 @@ sub git_get_paging_nav {
if ($nrevs >= (100 * ($page+1)-1)) { if ($nrevs >= (100 * ($page+1)-1)) {
$paging_nav .= " ⋅ " . $paging_nav .= " ⋅ " .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$action;h=$hash;pg=" . ($page+1)), $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$action;h=$hash;pg=" . ($page+1)),
-accesskey => "n", -title => "Alt-n"}, "next"); -accesskey => "n", -title => "Alt-n"}, "next");
} else { } else {
$paging_nav .= " ⋅ next"; $paging_nav .= " ⋅ next";
} }
@ -1844,9 +1844,9 @@ sub git_log {
next if !%co; next if !%co;
my %ad = date_str($co{'author_epoch'}); my %ad = date_str($co{'author_epoch'});
git_header_div('commit', git_header_div('commit',
"<span class=\"age\">$co{'age_string'}</span>" . "<span class=\"age\">$co{'age_string'}</span>" .
esc_html($co{'title'}) . $ref, esc_html($co{'title'}) . $ref,
$commit); $commit);
print "<div class=\"title_text\">\n" . print "<div class=\"title_text\">\n" .
"<div class=\"log_link\">\n" . "<div class=\"log_link\">\n" .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$commit")}, "commit") . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$commit")}, "commit") .
@ -1911,8 +1911,8 @@ sub git_commit {
} }
git_header_html(undef, $expires); git_header_html(undef, $expires);
git_page_nav('commit', defined $co{'parent'} ? '' : 'commitdiff', git_page_nav('commit', defined $co{'parent'} ? '' : 'commitdiff',
$hash, $co{'tree'}, $hash, $hash, $co{'tree'}, $hash,
$formats_nav); $formats_nav);


if (defined $co{'parent'}) { if (defined $co{'parent'}) {
git_header_div('commitdiff', esc_html($co{'title'}) . $ref, $hash); git_header_div('commitdiff', esc_html($co{'title'}) . $ref, $hash);

Loading…
Cancel
Save