r90893 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90892‎ | r90893 | r90894 >
Date:17:49, 27 June 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Follow-up r86490 CR: localise strings and synchronise CSS styles.
Modified paths:
  • /trunk/extensions/CodeReview/CodeReview.i18n.php (modified) (history)
  • /trunk/extensions/CodeReview/CodeReview.php (modified) (history)
  • /trunk/extensions/CodeReview/modules/ext.codereview.overview.css (modified) (history)
  • /trunk/extensions/CodeReview/modules/ext.codereview.overview.js (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeReview.php
@@ -175,7 +175,8 @@
176176 $wgResourceModules['ext.codereview.overview'] = array(
177177 'scripts' => 'ext.codereview.overview.js',
178178 'styles' => 'ext.codereview.overview.css',
179 - 'dependencies' => 'jquery.tipsy'
 179+ 'dependencies' => 'jquery.tipsy',
 180+ 'messages' => array( 'codereview-overview-title', 'codereview-overview-desc' ),
180181 ) + $commonModuleInfo;
181182
182183 // If you are running a closed svn, fill the following two lines with the username and password
Index: trunk/extensions/CodeReview/CodeReview.i18n.php
@@ -142,6 +142,9 @@
143143
144144 'codereview-reply-link' => 'reply',
145145
 146+ 'codereview-overview-title' => 'Overview',
 147+ 'codereview-overview-desc' => 'Show a graphical overview of this list',
 148+
146149 'codereview-email-subj' => '[$1 $2]: New comment added',
147150 'codereview-email-body' => 'User "$1" posted a comment on $3.
148151
Index: trunk/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,38 +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 -
6836 table.TablePager tr:target {
6937 font-weight: bold;
7038 }
@@ -75,4 +43,4 @@
7644
7745 tr:target .overview-backlink {
7846 display: inline;
79 -}
 47+}
\ No newline at end of file
Index: trunk/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
@@ -43,9 +41,11 @@
4442 $tr.each( function( i ){
4543 var status = false;
4644
47 - var trc = $(this).attr( 'class' ).split(' ');
48 - if( !trc.length ) {
 45+ var trc = $(this).attr( 'class' );
 46+ if( !trc || !trc.length ) {
4947 return;
 48+ } else {
 49+ trc = trc.split( ' ' );
5050 }
5151 for( var j = 0; j < trc.length; j++ ) {
5252 if( trc[j].substring( 0, 21 ) == 'mw-codereview-status-' ) {
@@ -78,7 +78,6 @@
7979 if( !totals[statusname] ) {
8080 totals[statusname] = 0;
8181 }
82 -
8382 totals[statusname]++;
8483
8584 $(this).attr( 'id', 'TablePager-row-' + rev );
@@ -86,7 +85,7 @@
8786 $td.filter( '.TablePager_col_selectforchange' )
8887 .append( $( '<a href="#box-' + i + '" class="overview-backlink">^</a>' ) );
8988
90 - var $box = $( '<a href="#TablePager-row-' + rev + '" class="box-status-' + status + '" id="box-' + i + '"> </a>' );
 89+ var $box = $( '<a href="#TablePager-row-' + rev + '" class="mw-codereview-status-' + status + '" id="box-' + i + '"> </a>' );
9190 $( '#overviewmap' ).append( $box );
9291 });
9392

Follow-up revisions

RevisionCommit summaryAuthorDate
r92308REL1.18: MFT r90889, r90890, r90891, r90893reedy21:34, 15 July 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r86490Restore r84687 (reverted in r84751). Now with a few extra features:...happy-melon16:28, 20 April 2011

Status & tagging log