Index: trunk/extensions/CodeReview/CodeCommentsListView.php |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | switch( $name ){ |
70 | 70 | case 'cc_rev_id': |
71 | 71 | return $this->mView->mSkin->link( |
72 | | - SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/' . $value ), |
| 72 | + SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/' . $value . '#code-comments' ), |
73 | 73 | htmlspecialchars( $value ) ); |
74 | 74 | case 'cr_status': |
75 | 75 | return $this->mView->mSkin->link( |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | case 'cc_text': |
84 | 84 | # Truncate this, blah blah... |
85 | 85 | $text = htmlspecialchars($value); |
86 | | - $preview = $wgLang->truncate( $text, 400 ); |
| 86 | + $preview = $wgLang->truncate( $text, 300 ); |
87 | 87 | if( strlen($preview) < strlen($text) ) { |
88 | 88 | $preview = substr( $preview, 0, strrpos($preview,' ') ); |
89 | 89 | $preview .= " . . ."; |
Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | "</div>\n"; |
69 | 69 | } |
70 | 70 | $html .= |
71 | | - "<h2>". wfMsgHtml( 'code-comments' ) ."</h2>\n" . |
| 71 | + "<h2 id='code-comments'>". wfMsgHtml( 'code-comments' ) ."</h2>\n" . |
72 | 72 | $this->formatComments(); |
73 | 73 | |
74 | 74 | if( $this->mReplyTarget ) { |