X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=gitweb%2Fgitweb.cgi;h=5a9ebcff63a2746e19de2c9cf07258645876f3d2;hb=fcbb4adc0ce79a3f280c06180b8b63d3f81b53cc;hp=b8ad9cccad59c2c0039430bbae5561d09224d1e1;hpb=ae087be9931a9b88002fa60eed3f71fad99d3cca;p=infrastructure.git diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index b8ad9cc..5a9ebcf 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -1442,7 +1442,7 @@ sub format_snapshot_links { snapshot_format=>$fmt ), -title => "in format: $known_snapshot_formats{$fmt}{'display'}" - }, "snapshot"); + }, "tar"); } else { # $num_fmts == 0 return undef; } @@ -3631,15 +3631,15 @@ sub git_shortlog_body { $alternate ^= 1; my $author = chop_and_escape_str($co{'author_name'}, 10); # git_summary() used print "$co{'age_string'}\n" . - print "$co{'age_string_date'}\n" . + print "$co{'age_string_date'}\n" . "" . $author . "\n" . ""; print format_subject_html($co{'title'}, $co{'title_short'}, href(action=>"commit", hash=>$commit), $ref); print "\n" . "" . - $cgi->a({-href => href(action=>"commit", hash=>$commit)}, substr($commit,0,8)) . " | " . - $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " . + $cgi->a({-class=>"commit",-href => href(action=>"commit", hash=>$commit)}, substr($commit,0,8)) . " | " . + $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "diff") . " | " . $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree"); my $snapshot_links = format_snapshot_links($commit); if (defined $snapshot_links) { @@ -3740,7 +3740,7 @@ sub git_tags_body { } $alternate ^= 1; if (defined $tag{'age'}) { - print "$tag{'age'}\n"; + print "$tag{'age'}\n"; } else { print "\n"; } @@ -3761,13 +3761,16 @@ sub git_tags_body { print " "; } print "\n" . - "" . " | " . - $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, $tag{'reftype'}); + "" . " | " ; if ($tag{'reftype'} eq "commit") { - print " | " . $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'fullname'})}, "shortlog") . - " | " . $cgi->a({-href => href(action=>"log", hash=>$tag{'fullname'})}, "log"); + print $cgi->a({-class=>"commit",-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, + substr($tag{'refid'},0,9)); + print " | " . $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'fullname'})}, "shortlog") . + " | " . $cgi->a({-href => href(action=>"log", hash=>$tag{'fullname'})}, "log"); } elsif ($tag{'reftype'} eq "blob") { print " | " . $cgi->a({-href => href(action=>"blob_plain", hash=>$tag{'refid'})}, "raw"); + } else { + print $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, $tag{'reftype'}); } print "\n" . "";