r92308 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92307‎ | r92308 | r92309 >
Date:21:34, 15 July 2011
Author:reedy
Status:deferred
Tags:
Comment:
REL1.18: MFT r90889, r90890, r90891, r90893
Modified paths:
  • /branches/REL1_18/extensions/CodeReview (modified) (history)
  • /branches/REL1_18/extensions/CodeReview/CodeReview.i18n.php (modified) (history)
  • /branches/REL1_18/extensions/CodeReview/CodeReview.php (modified) (history)
  • /branches/REL1_18/extensions/CodeReview/modules/ext.codereview.overview.css (modified) (history)
  • /branches/REL1_18/extensions/CodeReview/modules/ext.codereview.overview.js (modified) (history)

Diff [purge]

Index: branches/REL1_18/extensions/CodeReview/CodeReview.php
@@ -166,7 +166,8 @@
167167 $wgResourceModules['ext.codereview.overview'] = array(
168168 'scripts' => 'ext.codereview.overview.js',
169169 'styles' => 'ext.codereview.overview.css',
170 - 'dependencies' => 'jquery.tipsy'
 170+ 'dependencies' => 'jquery.tipsy',
 171+ 'messages' => array( 'codereview-overview-title', 'codereview-overview-desc' ),
171172 ) + $commonModuleInfo;
172173
173174 // If you are running a closed svn, fill the following two lines with the username and password
Index: branches/REL1_18/extensions/CodeReview/CodeReview.i18n.php
@@ -141,6 +141,9 @@
142142
143143 'codereview-reply-link' => 'reply',
144144
 145+ 'codereview-overview-title' => 'Overview',
 146+ 'codereview-overview-desc' => 'Show a graphical overview of this list',
 147+
145148 'codereview-email-subj' => '[$1 $2]: New comment added',
146149 'codereview-email-body' => 'User "$1" posted a comment on $3.
147150
Index: branches/REL1_18/extensions/CodeReview/modules/ext.codereview.overview.css
@@ -3,7 +3,7 @@
44 padding: 2px;
55 min-width: 300px;
66 }
7 -#overviewmap #overviewpop {
 7+#overviewpop {
88 padding: 3px;
99 border: 1px solid black;
1010 position: absolute;
@@ -32,42 +32,6 @@
3333 clear: both;
3434 }
3535
36 -/** Revision statuses **/
37 -.box-status-new {
38 - background: #ffffc0 !important;
39 -}
40 -.box-status-new:hover {
41 - background: #dfdfa0 !important;
42 -}
43 -.box-status-fixme {
44 - background: #ff9999 !important;
45 -}
46 -.box-status-fixme:hover {
47 - background: #df0000 !important;
48 -}
49 -.box-status-resolved {
50 - background: #b0eeb0 !important;
51 -}
52 -.box-status-resolved:hover {
53 - background: #80ff80 !important;
54 -}
55 -.box-status-reverted {
56 - background: #bbddee !important;
57 -}
58 -.box-status-reverted:hover {
59 - background: #66bbff !important;
60 -}
61 -.box-status-deferred {
62 - background: #dddddd !important;
63 -}
64 -.box-status-deferred:hover {
65 - background: #aaaaaa !important;
66 -}
67 -
68 -.box-live-live {
69 - border: 1px solid #00ff00 !important;
70 -}
71 -
7236 table.TablePager tr:target {
7337 font-weight: bold;
7438 }
Index: branches/REL1_18/extensions/CodeReview/modules/ext.codereview.overview.js
@@ -15,11 +15,9 @@
1616 mw.util.addPortletLink(
1717 portlet,
1818 '#',
19 - 'Overview',
 19+ mw.msg( 'codereview-overview-title' ),
2020 'ca-scapmap',
21 - 'Show a graphical overview of this list.',
22 - '1',
23 - '' // Nextnode, needs to be defined but we actually don't care
 21+ mw.msg( 'codereview-overview-desc' )
2422 );
2523 }
2624
@@ -41,17 +39,15 @@
4240 var vpath = $( '#path' ).val();
4341 var totals = {};
4442 $tr.each( function( i ){
45 - var live = 'notlive';
4643 var status = false;
4744
48 - var trc = $(this).attr( 'class' ).split(' ');
49 - if( !trc.length ) {
 45+ var trc = $(this).attr( 'class' );
 46+ if( !trc || !trc.length ) {
5047 return;
 48+ } else {
 49+ trc = trc.split( ' ' );
5150 }
5251 for( var j = 0; j < trc.length; j++ ) {
53 - // WMF doesn't use live/not live ATM
54 - // if( /mw\-codereview\-(not|)live/.test( trc[j] ) )
55 - // live = trc[j].substring( 14 );
5652 if( trc[j].substring( 0, 21 ) == 'mw-codereview-status-' ) {
5753 status = trc[j].substring( 21 );
5854 }
@@ -60,7 +56,7 @@
6157
6258 var statusname = $td.filter( '.TablePager_col_cr_status' ).text();
6359
64 - if( !statusname || !status || !live ) {
 60+ if( !statusname || !status ) {
6561 return;
6662 }
6763
@@ -79,23 +75,17 @@
8076 }
8177 overviewPopupData[i]['path'] = path;
8278
83 - //overviewPopupData[i]['live'] = live;
8479 if( !totals[statusname] ) {
8580 totals[statusname] = 0;
8681 }
87 - //if( !totals[live] ) {
88 - // totals[live] = 0;
89 - //}
9082 totals[statusname]++;
91 - //totals[live]++;
9283
9384 $(this).attr( 'id', 'TablePager-row-' + rev );
9485
9586 $td.filter( '.TablePager_col_selectforchange' )
9687 .append( $( '<a href="#box-' + i + '" class="overview-backlink">^</a>' ) );
9788
98 - var $box = $( '<a href="#TablePager-row-' + rev + '" class="box-status-' + status + '" id="box-' + i + '"> </a>' );
99 - // $box.append( document.createTextNode( live ) );
 89+ var $box = $( '<a href="#TablePager-row-' + rev + '" class="mw-codereview-status-' + status + '" id="box-' + i + '"> </a>' );
10090 $( '#overviewmap' ).append( $box );
10191 });
10292
@@ -131,8 +121,7 @@
132122 '</span> (<span id="overviewpop-status">' + overviewPopupData[id]['status'] + '</span>)</div>' +
133123 '<div>Number of notes: <span id="overviewpop-notes">' + overviewPopupData[id]['notes'] + '</span></div>' +
134124 '<div>Path: <span id="overviewpop-path">' + overviewPopupData[id]['path'] + '</span></div>' +
135 - '<div>Author: r<span id="overviewpop-author">' + overviewPopupData[id]['author'] + '</span></div>' +
136 - //'<div>Live: <span id="overviewpop-live">' + overviewPopupData[id]['live'] + '</span></div>' +
 125+ '<div>Author: <span id="overviewpop-author">' + overviewPopupData[id]['author'] + '</span></div>' +
137126 '</div>')
138127 $el.attr( 'title', $popup.html() );
139128 $el.data( 'codeTooltip', true );
Property changes on: branches/REL1_18/extensions/CodeReview
___________________________________________________________________
Added: svn:mergeinfo
140129 Merged /trunk/extensions/CodeReview:r90889-90891,90893

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90889Followup r86490, remove spurious rreedy17:36, 27 June 2011
r90890Remove commented out "live" code which we don't use nowreedy17:39, 27 June 2011
r90891Kill unused css as of r90890reedy17:40, 27 June 2011
r90893Follow-up r86490 CR: localise strings and synchronise CSS styles.happy-melon17:49, 27 June 2011

Status & tagging log