Index: trunk/extensions/CentralNotice/SpecialBannerAllocation.php |
— | — | @@ -131,7 +131,8 @@ |
132 | 132 | global $wgOut, $wgUser, $wgRequest, $wgLang; |
133 | 133 | |
134 | 134 | $sk = $wgUser->getSkin(); |
135 | | - $viewPage = $this->getTitleFor( 'NoticeTemplate', 'view' ); |
| 135 | + $viewBanner = $this->getTitleFor( 'NoticeTemplate', 'view' ); |
| 136 | + $viewCampaign = $this->getTitleFor( 'CentralNotice' ); |
136 | 137 | |
137 | 138 | // Begin building HTML |
138 | 139 | $htmlOut = ''; |
— | — | @@ -163,10 +164,12 @@ |
164 | 165 | $htmlOut .= Xml::openElement( 'table', |
165 | 166 | array ( 'cellpadding' => 9, 'class' => 'wikitable sortable' ) ); |
166 | 167 | $htmlOut .= Xml::openElement( 'tr' ); |
167 | | - $htmlOut .= Xml::element( 'th', array( 'width' => '40%' ), |
| 168 | + $htmlOut .= Xml::element( 'th', array( 'width' => '20%' ), |
168 | 169 | wfMsg ( 'centralnotice-percentage' ) ); |
169 | | - $htmlOut .= Xml::element( 'th', array( 'width' => '60%' ), |
| 170 | + $htmlOut .= Xml::element( 'th', array( 'width' => '30%' ), |
170 | 171 | wfMsg ( 'centralnotice-banner' ) ); |
| 172 | + $htmlOut .= Xml::element( 'th', array( 'width' => '30%' ), |
| 173 | + wfMsg ( 'centralnotice-notice' ) ); |
171 | 174 | $htmlOut .= Xml::closeElement( 'tr' ); |
172 | 175 | foreach ( $banners as $banner ) { |
173 | 176 | $htmlOut .= Xml::openElement( 'tr' ); |
— | — | @@ -175,9 +178,13 @@ |
176 | 179 | $htmlOut .= wfMsg ( 'percent', $wgLang->formatNum( $percentage ) ); |
177 | 180 | $htmlOut .= Xml::closeElement( 'td' ); |
178 | 181 | $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), |
179 | | - $sk->makeLinkObj( $viewPage, htmlspecialchars( $banner['name'] ), |
| 182 | + $sk->makeLinkObj( $viewBanner, htmlspecialchars( $banner['name'] ), |
180 | 183 | 'template=' . urlencode( $banner['name'] ) ) |
181 | 184 | ); |
| 185 | + $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), |
| 186 | + $sk->makeLinkObj( $viewCampaign, htmlspecialchars( $banner['campaign'] ), |
| 187 | + 'method=listNoticeDetail¬ice=' . urlencode( $banner['campaign'] ) ) |
| 188 | + ); |
182 | 189 | $htmlOut .= Xml::closeElement( 'tr' ); |
183 | 190 | } |
184 | 191 | $htmlOut .= Xml::closeElement( 'table' ); |