- print "<div class=\"list\">\n" .
- $cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$to_id"},
- escapeHTML($file) . $mode_chnge) . "\n" .
- "</div>\n";
+ print "<div class=\"list\">\n";
+ if ($to_id ne $from_id) {
+ print $cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$to_id;hp=$from_id"},
+ escapeHTML($file) . $mode_chnge) . "\n" .
+ "</div>\n";
+ } else {
+ print $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$to_id"},
+ escapeHTML($file) . $mode_chnge) . "\n" .
+ "</div>\n";
+ }