Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -143,7 +143,19 @@ |
144 | 144 | 'contest-contestant-yes' => 'Yes', |
145 | 145 | 'contest-contestant-commentcount' => 'Comments', |
146 | 146 | 'contest-contestant-overallrating' => 'Rating', |
147 | | - 'contest-contestant-rating' => '$1 ($2 {{PLURAL:$2|vote|votes}})' |
| 147 | + 'contest-contestant-rating' => '$1 ($2 {{PLURAL:$2|vote|votes}})', |
| 148 | + |
| 149 | + // Special:Contestant |
| 150 | + 'contest-contestant-title' => 'Contestant $1 ($2)', |
| 151 | + 'contest-contestant-header-id' => 'Contestant ID', |
| 152 | + 'contest-contestant-header-contest' => 'Contest name', |
| 153 | + 'contest-contestant-header-submission' => 'Submission link', |
| 154 | + 'contest-contestant-header-country' => 'Contestant country', |
| 155 | + 'contest-contestant-header-wmf' => 'Interested in WMF job', |
| 156 | + 'contest-contestant-header-volunteer' => 'Interested in volunteer opportunities', |
| 157 | + 'contest-contestant-header-rating' => 'Rating', |
| 158 | + 'contest-contestant-header-comments' => 'Amount of comments', |
| 159 | + 'contest-contestant-submission-url' => 'Submission', |
148 | 160 | ); |
149 | 161 | |
150 | 162 | /** Message documentation (Message documentation) |
Index: trunk/extensions/Contest/Contest.alias.php |
— | — | @@ -17,6 +17,7 @@ |
18 | 18 | /** English (English) */ |
19 | 19 | $specialPageAliases['en'] = array( |
20 | 20 | 'Contest' => array( 'Contest' ), |
| 21 | + 'Contestant' => array( 'Contestant' ), |
21 | 22 | 'Contests' => array( 'Contests' ), |
22 | 23 | 'ContestSignup' => array( 'ContestSignup' ), |
23 | 24 | 'ContestSubmission' => array( 'ContestSubmission' ), |
Index: trunk/extensions/Contest/specials/SpecialContestPage.php |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | |
130 | 130 | $links[] = Html::element( |
131 | 131 | 'a', |
132 | | - array( 'href' => SpecialPage::getTitleFor( $page[0], $subPage )->getLocalURL() ), |
| 132 | + array( 'href' => SpecialPage::getTitleFor( 'ContestSubmission', $subPage )->getLocalURL() ), |
133 | 133 | wfMsgExt( $message, 'parseinline', $subPage ) |
134 | 134 | ); |
135 | 135 | } |
Index: trunk/extensions/Contest/Contest.php |
— | — | @@ -60,6 +60,7 @@ |
61 | 61 | $wgAutoloadClasses['ContestVote'] = dirname( __FILE__ ) . '/includes/ContestVote.php'; |
62 | 62 | |
63 | 63 | $wgAutoloadClasses['SpecialContest'] = dirname( __FILE__ ) . '/specials/SpecialContest.php'; |
| 64 | +$wgAutoloadClasses['SpecialContestant'] = dirname( __FILE__ ) . '/specials/SpecialContestant.php'; |
64 | 65 | $wgAutoloadClasses['SpecialContestPage'] = dirname( __FILE__ ) . '/specials/SpecialContestPage.php'; |
65 | 66 | $wgAutoloadClasses['SpecialContests'] = dirname( __FILE__ ) . '/specials/SpecialContests.php'; |
66 | 67 | $wgAutoloadClasses['SpecialContestSignup'] = dirname( __FILE__ ) . '/specials/SpecialContestSignup.php'; |
— | — | @@ -69,6 +70,7 @@ |
70 | 71 | |
71 | 72 | // Special pages |
72 | 73 | $wgSpecialPages['Contest'] = 'SpecialContest'; |
| 74 | +$wgSpecialPages['Contestant'] = 'SpecialContestant'; |
73 | 75 | $wgSpecialPages['Contests'] = 'SpecialContests'; |
74 | 76 | $wgSpecialPages['ContestSignup'] = 'SpecialContestSignup'; |
75 | 77 | $wgSpecialPages['ContestSubmission'] = 'SpecialContestSubmission'; |
— | — | @@ -76,6 +78,7 @@ |
77 | 79 | $wgSpecialPages['EditContest'] = 'SpecialEditContest'; |
78 | 80 | |
79 | 81 | $wgSpecialPageGroups['Contest'] = 'other'; |
| 82 | +$wgSpecialPageGroups['Contestant'] = 'other'; |
80 | 83 | $wgSpecialPageGroups['Contests'] = 'other'; |
81 | 84 | $wgSpecialPageGroups['ContestSignup'] = 'other'; |
82 | 85 | $wgSpecialPageGroups['ContestSubmission'] = 'other'; |
Index: trunk/extensions/Contest/includes/ContestantPager.php |
— | — | @@ -65,6 +65,15 @@ |
66 | 66 | |
67 | 67 | public function formatValue( $name, $value ) { |
68 | 68 | switch ( $name ) { |
| 69 | + case 'contestant_id': |
| 70 | + $value = Html::element( |
| 71 | + 'a', |
| 72 | + array( |
| 73 | + 'href' => SpecialPage::getTitleFor( 'Contestant', $value )->getLocalURL() |
| 74 | + ), |
| 75 | + $value |
| 76 | + ); |
| 77 | + break; |
69 | 78 | case 'contestant_volunteer': case 'contestant_wmf': |
70 | 79 | $value = wfMsg( 'contest-contestant-' . ( $value === '1' ? 'yes' : 'no' ) ); |
71 | 80 | break; |