Index: trunk/extensions/CodeReview/ui/CodeAuthorListView.php |
— | — | @@ -8,9 +8,10 @@ |
9 | 9 | } |
10 | 10 | |
11 | 11 | function execute() { |
12 | | - global $wgOut, $wgLang; |
| 12 | + global $wgOut, $wgLang, $wgRequest; |
13 | 13 | $authors = $this->mRepo->getAuthorList(); |
14 | 14 | $repo = $this->mRepo->getName(); |
| 15 | + $hideLinked = $wgRequest->getBool( 'unlinkedonly' ); |
15 | 16 | $text = wfMsg( 'code-authors-text' ) . "\n\n"; |
16 | 17 | $text .= '<strong>' . wfMsg( 'code-author-total', $wgLang->formatNum( $this->mRepo->getAuthorCount() ) ) . "</strong>\n"; |
17 | 18 | |
— | — | @@ -22,15 +23,18 @@ |
23 | 24 | |
24 | 25 | foreach ( $authors as $committer ) { |
25 | 26 | if ( $committer ) { |
26 | | - $wgOut->addHTML( "<tr><td>" ); |
27 | 27 | $author = $committer["author"]; |
28 | 28 | $text = "[[Special:Code/$repo/author/$author|$author]]"; |
29 | 29 | $user = $this->mRepo->authorWikiUser( $author ); |
30 | 30 | if ( $user ) { |
| 31 | + if( $hideLinked ) { |
| 32 | + continue; |
| 33 | + } |
31 | 34 | $title = htmlspecialchars( $user->getUserPage()->getPrefixedText() ); |
32 | 35 | $name = htmlspecialchars( $user->getName() ); |
33 | 36 | $text .= " ([[$title|$name]])"; |
34 | 37 | } |
| 38 | + $wgOut->addHTML( "<tr><td>" ); |
35 | 39 | $wgOut->addWikiText( $text ); |
36 | 40 | $wgOut->addHTML( "</td><td>{$wgLang->timeanddate( $committer['lastcommit'], true )}</td></tr>" ); |
37 | 41 | } |