Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -86,4 +86,8 @@ |
87 | 87 | $wgSubversionProxy = false; |
88 | 88 | $wgSubversionProxyTimeout = 30; // default 3 secs is too short :) |
89 | 89 | |
| 90 | + |
90 | 91 | $wgCodeReviewStyleVersion = 1; |
| 92 | +// The name of a repo which represents the code running on this wiki, used to highlight active revisions |
| 93 | +$wgWikiSVN = 'MediaWiki'; |
| 94 | + |
Index: trunk/extensions/CodeReview/codereview.css |
— | — | @@ -60,3 +60,12 @@ |
61 | 61 | .mw-codereview-diff .meta { |
62 | 62 | color: darkcyan; |
63 | 63 | } |
| 64 | + |
| 65 | +.mw-codereview-live td { |
| 66 | + border-color: #a0dfa0 !important;; |
| 67 | + border-width: 2px !important; |
| 68 | +} |
| 69 | + |
| 70 | +.mw-codereview-notlive td { |
| 71 | + |
| 72 | +} |
\ No newline at end of file |
Index: trunk/extensions/CodeReview/CodeRevisionListView.php |
— | — | @@ -32,9 +32,11 @@ |
33 | 33 | class SvnRevTablePager extends TablePager { |
34 | 34 | |
35 | 35 | function __construct( CodeRevisionListView $view ){ |
| 36 | + global $IP; |
36 | 37 | $this->mView = $view; |
37 | 38 | $this->mRepo = $view->mRepo; |
38 | 39 | $this->mDefaultDirection = true; |
| 40 | + $this->mCurSVN = SpecialVersion::getSvnRevision( $IP ); |
39 | 41 | parent::__construct(); |
40 | 42 | } |
41 | 43 | |
— | — | @@ -93,11 +95,16 @@ |
94 | 96 | |
95 | 97 | // Note: this function is poorly factored in the parent class |
96 | 98 | function formatRow( $row ) { |
| 99 | + global $wgWikiSVN; |
| 100 | + $class = "mw-codereview-status-{$row->cr_status}"; |
| 101 | + if($this->mRepo->mName == $wgWikiSVN){ |
| 102 | + $class .= " mw-codereview-" . ( $row->cr_id <= $this->mCurSVN ? 'live' : 'notlive' ); |
| 103 | + } |
97 | 104 | return str_replace( |
98 | 105 | '<tr>', |
99 | 106 | Xml::openElement( 'tr', |
100 | | - array( 'class' => "mw-codereview-status-{$row->cr_status}" ) ), |
101 | | - parent::formatRow( $row ) ); |
| 107 | + array( 'class' => $class ) ), |
| 108 | + parent::formatRow( $row ) ); |
102 | 109 | } |
103 | 110 | |
104 | 111 | function getTitle(){ |