Index: trunk/extensions/Push/Push.i18n.php |
— | — | @@ -42,6 +42,7 @@ |
43 | 43 | 'push-remote-page-link-full' => 'View $1 on $2', |
44 | 44 | 'push-targets-total' => 'There a total of $1 {{PLURAL:$1|target|targets}}.', |
45 | 45 | 'push-button-all' => 'Push all', |
| 46 | + 'push-tab-last-edit' => 'Last edit by $1 on $2 at $3.', |
46 | 47 | |
47 | 48 | // Special page |
48 | 49 | 'special-push' => 'Push pages', |
Index: trunk/extensions/Push/Push.php |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | die( 'Not an entry point.' ); |
24 | 24 | } |
25 | 25 | |
26 | | -define( 'Push_VERSION', '0.3' ); |
| 26 | +define( 'Push_VERSION', '0.4 alpha' ); |
27 | 27 | |
28 | 28 | $wgExtensionCredits['other'][] = array( |
29 | 29 | 'path' => __FILE__, |
— | — | @@ -76,6 +76,7 @@ |
77 | 77 | 'push-special-item-failed', |
78 | 78 | 'push-special-push-done', |
79 | 79 | 'push-err-captacha', |
| 80 | + 'push-tab-last-edit', |
80 | 81 | ); |
81 | 82 | |
82 | 83 | // For backward compatibility with MW < 1.17. |
Index: trunk/extensions/Push/RELEASE-NOTES |
— | — | @@ -4,6 +4,11 @@ |
5 | 5 | Latest version of the release notes: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Push/RELEASE-NOTES?view=co |
6 | 6 | |
7 | 7 | |
| 8 | +=== Version 0.4 === |
| 9 | +2010-12-xx |
| 10 | + |
| 11 | +* |
| 12 | + |
8 | 13 | === Version 0.3 === |
9 | 14 | 2010-12-10 |
10 | 15 | |
Index: trunk/extensions/Push/includes/Push_Tab.php |
— | — | @@ -185,7 +185,7 @@ |
186 | 186 | array(), |
187 | 187 | Html::element( |
188 | 188 | 'th', |
189 | | - array(), |
| 189 | + array( 'width' => '200px' ), |
190 | 190 | wfMsg( 'push-targets' ) |
191 | 191 | ) . |
192 | 192 | Html::element( |
— | — | @@ -271,6 +271,13 @@ |
272 | 272 | 'id' => 'targetlink' . $targetId |
273 | 273 | ), |
274 | 274 | wfMsgExt( 'push-remote-page-link', 'parsemag', $wgTitle->getFullText(), $name ) |
| 275 | + ) . |
| 276 | + Html::element( |
| 277 | + 'div', |
| 278 | + array( |
| 279 | + 'id' => 'targetinfo' . $targetId, |
| 280 | + 'style' => 'display:none' |
| 281 | + ) |
275 | 282 | ) |
276 | 283 | ) . |
277 | 284 | Html::rawElement( |
Index: trunk/extensions/Push/includes/ext.push.tab.js |
— | — | @@ -63,6 +63,17 @@ |
64 | 64 | if ( first == '-1' ) { |
65 | 65 | $( '#targetlink' + targetId ).attr( {'class': 'new'} ); |
66 | 66 | } |
| 67 | + else { |
| 68 | + var revision = data.query.pages[first].revisions[0]; |
| 69 | + var dateTime = revision.timestamp.split( 'T' ); |
| 70 | + $( '#targetinfo' + targetId ).css( 'color', 'darkgray' ); |
| 71 | + $( '#targetinfo' + targetId ).text( mediaWiki.msg( |
| 72 | + 'push-tab-last-edit', |
| 73 | + revision.user, |
| 74 | + dateTime[0], |
| 75 | + dateTime[1].replace( 'Z', '' ) |
| 76 | + ) ).fadeIn('slow'); |
| 77 | + } |
67 | 78 | } |
68 | 79 | } |
69 | 80 | ); |
Index: trunk/extensions/Push/README |
— | — | @@ -5,5 +5,5 @@ |
6 | 6 | |
7 | 7 | == About == |
8 | 8 | |
9 | | -The Push extension is a simple leightwieght tool that adds an extra tab to artciles that |
10 | | -allows users to push the content of the article to another MediaWiki wiki. |
\ No newline at end of file |
| 9 | +The Push extension is a simple lightweight tool that adds an extra tab to articles which |
| 10 | +enables users to push the content of the article to one or more other MediaWiki wikis. |
\ No newline at end of file |