Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -165,6 +165,7 @@ |
166 | 166 | 'contest-contest-reminder-close' => 'Close', |
167 | 167 | 'contest-contest-reminder-retry' => 'Retry sending', |
168 | 168 | 'contest-contest-reminder-failed' => 'Could not sent the reminder emails.', |
| 169 | + 'contest-contest-reminder-subject' => 'Subject:', |
169 | 170 | |
170 | 171 | // Contestant pager |
171 | 172 | 'contest-contestant-id' => 'ID', |
— | — | @@ -310,6 +311,7 @@ |
311 | 312 | 'contest-contest-reminder-close' => 'Close button text', |
312 | 313 | 'contest-contest-reminder-retry' => 'Retry button text', |
313 | 314 | 'contest-contest-reminder-failed' => 'Failiure message, displayed in an alert box', |
| 315 | + 'contest-contest-reminder-subject' => 'Email subject indicator', |
314 | 316 | |
315 | 317 | // Special:MyContests |
316 | 318 | 'contest-mycontests-toplink' => 'Text for link in the user menu (i.e. where watchlist and preferences are linked)', |
Index: trunk/extensions/Contest/specials/SpecialContest.php |
— | — | @@ -141,7 +141,11 @@ |
142 | 142 | array( |
143 | 143 | 'id' => 'send-reminder', |
144 | 144 | 'data-token' => $this->getUser()->editToken(), |
145 | | - 'data-contest-id' => $contest->getId() |
| 145 | + 'data-contest-id' => $contest->getId(), |
| 146 | + |
| 147 | + // Note: this is a copy of the message in ContestContestant::sendReminderEmail. |
| 148 | + // If it's changed or modified by a hook, this message might not be accurate. |
| 149 | + 'data-reminder-subject' => wfMsgExt( 'contest-email-reminder-title', 'parsemag', $contest->getDaysLeft() ) |
146 | 150 | ), |
147 | 151 | wfMsg( 'contest-contest-send-reminder' ) |
148 | 152 | ) ); |
Index: trunk/extensions/Contest/Contest.php |
— | — | @@ -169,6 +169,7 @@ |
170 | 170 | 'contest-contest-reminder-close', |
171 | 171 | 'contest-contest-reminder-retry', |
172 | 172 | 'contest-contest-reminder-failed', |
| 173 | + 'contest-contest-reminder-subject', |
173 | 174 | ), |
174 | 175 | 'dependencies' => array( |
175 | 176 | 'jquery.ui.button', 'jquery.ui.dialog', |
Index: trunk/extensions/Contest/resources/contest.special.contest.js |
— | — | @@ -32,6 +32,7 @@ |
33 | 33 | |
34 | 34 | $dialog = $( '<div />' ).html( '' ).dialog( { |
35 | 35 | 'title': mw.msg( 'contest-contest-reminder-title' ), |
| 36 | + 'minWidth': 550, |
36 | 37 | 'buttons': [ |
37 | 38 | { |
38 | 39 | 'text': mw.msg( 'contest-contest-reminder-send' ), |
— | — | @@ -70,6 +71,12 @@ |
71 | 72 | |
72 | 73 | $dialog.append( $( '<p />' ).text( mw.msg( 'contest-contest-reminder-preview' ) ) ).append( '<hr />' ); |
73 | 74 | |
| 75 | + $dialog.append( $( '<p />' ) |
| 76 | + .html( $( '<b />' ) |
| 77 | + .text( mw.msg( 'contest-contest-reminder-subject' ) ) ) |
| 78 | + .append( ' ' + $( '#send-reminder' ).attr( 'data-reminder-subject' ) ) ) |
| 79 | + .append( '<hr />' ); |
| 80 | + |
74 | 81 | $dialog.append( $( '#reminder-content' ).html() ); |
75 | 82 | }; |
76 | 83 | |