Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -177,6 +177,7 @@ |
178 | 178 | 'contest-contestant-commentcount' => 'Comments', |
179 | 179 | 'contest-contestant-overallrating' => 'Rating', |
180 | 180 | 'contest-contestant-rating' => '$1 ($2 {{PLURAL:$2|vote|votes}})', |
| 181 | + 'contest-contestant-submission' => 'Submission', |
181 | 182 | |
182 | 183 | // Special:Contestant |
183 | 184 | 'contest-contestant-title' => 'Contestant $1 ($2)', |
— | — | @@ -290,6 +291,7 @@ |
291 | 292 | 'contest-contestant-yes' => 'Table cell value', |
292 | 293 | 'contest-contestant-commentcount' => 'Table column header', |
293 | 294 | 'contest-contestant-overallrating' => 'Table column header', |
| 295 | + 'contest-contestant-submission' => 'Table column header', |
294 | 296 | 'contest-contestant-rating' => '$1 is the avarage rating, $2 is the amount of votes', |
295 | 297 | 'contest-contestant-title' => 'Page title with contestant id $1 and contest name $2', |
296 | 298 | 'contest-contestant-header-id' => 'Table row header', |
Index: trunk/extensions/Contest/specials/SpecialContestant.php |
— | — | @@ -189,11 +189,11 @@ |
190 | 190 | $stats['submission'] = htmlspecialchars( wfMsg( 'contest-contestant-notsubmitted' ) ); |
191 | 191 | } |
192 | 192 | else { |
193 | | - $stats['submission'] = '<b>' . Html::element( |
| 193 | + $stats['submission'] = Html::element( |
194 | 194 | 'a', |
195 | | - array( 'href' => $contestant->getField( 'submission' ) ), |
196 | | - wfMsg( 'contest-contestant-submission-url' ) |
197 | | - ) . '</b>'; |
| 195 | + array( 'href' => $contestant->getField( 'submission' ) ), |
| 196 | + $contestant->getField( 'submission' ) |
| 197 | + ); |
198 | 198 | } |
199 | 199 | |
200 | 200 | $countries = ContestContestant::getCountries(); |
Index: trunk/extensions/Contest/Contest.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | die( '<b>Error:</b> Contest requires MediaWiki 1.18 or above.' ); |
30 | 30 | } |
31 | 31 | |
32 | | -define( 'CONTEST_VERSION', '0.1' ); |
| 32 | +define( 'CONTEST_VERSION', '0.2 alpha' ); |
33 | 33 | |
34 | 34 | $wgExtensionCredits['other'][] = array( |
35 | 35 | 'path' => __FILE__, |
Index: trunk/extensions/Contest/includes/ContestantPager.php |
— | — | @@ -131,6 +131,7 @@ |
132 | 132 | 'contestant_wmf' => 'contest-contestant-wmf', |
133 | 133 | 'contestant_comments' => 'contest-contestant-commentcount', |
134 | 134 | 'contestant_rating' => 'contest-contestant-overallrating', |
| 135 | + 'contestant_submission' => 'contest-contestant-submission', |
135 | 136 | ); |
136 | 137 | |
137 | 138 | $headers = array_map( 'wfMsg', $headers ); |
— | — | @@ -217,13 +218,22 @@ |
218 | 219 | $value = htmlspecialchars( $this->getLang()->formatNum( $value ) ); |
219 | 220 | break; |
220 | 221 | case 'contestant_rating': |
221 | | - $value = htmlspecialchars( wfMsgExt( |
| 222 | + $value = '<div style="white-space:nowrap;">' . htmlspecialchars( wfMsgExt( |
222 | 223 | 'contest-contestant-rating', |
223 | 224 | 'parsemag', |
224 | 225 | $this->getLang()->formatNum( $value / 100 ), |
225 | 226 | $this->getLang()->formatNum( $this->mCurrentRow->contestant_rating_count ) |
226 | | - ) ); |
| 227 | + ) ) . '</div>'; |
227 | 228 | break; |
| 229 | + case 'contestant_submission': |
| 230 | + $value = Html::element( |
| 231 | + 'a', |
| 232 | + array( |
| 233 | + 'href' => $value |
| 234 | + ), |
| 235 | + $value |
| 236 | + ); |
| 237 | + break; |
228 | 238 | } |
229 | 239 | |
230 | 240 | return $value; |
— | — | @@ -240,6 +250,7 @@ |
241 | 251 | 'contestant_comments', |
242 | 252 | 'contestant_rating', |
243 | 253 | 'contestant_rating_count', |
| 254 | + 'contestant_submission', |
244 | 255 | ), |
245 | 256 | 'conds' => $this->conds, |
246 | 257 | ); |