r80101 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80100‎ | r80101 | r80102 >
Date:18:40, 12 January 2011
Author:laner
Status:deferred
Tags:
Comment:
Restructure output of SpecialProject some
Modified paths:
  • /trunk/extensions/OpenStackManager/special/SpecialNovaProject.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenStackManager/special/SpecialNovaProject.php
@@ -193,15 +193,17 @@
194194 $memberOut .= Html::rawElement( 'li', array(), $projectMemberOut );
195195 }
196196 if ( $memberOut ) {
197 - $memberOut .= '<br />';
198197 $memberOut = Html::rawElement( 'ul', array(), $memberOut );
199198 }
200 - $memberOut .= $sk->link( $this->getTitle(), wfMsg( 'openstackmanager-addmember' ), array(),
201 - array( 'action' => 'addmember', 'projectname' => $projectName ), array() );
202199 $projectOut .= Html::rawElement( 'td', array(), $memberOut );
203200 $link = $sk->link( $this->getTitle(), wfMsg( 'openstackmanager-deleteproject' ), array(),
204201 array( 'action' => 'delete', 'projectname' => $projectName ), array() );
205 - $projectOut .= Html::rawElement( 'td', array(), $link );
 202+ $actions = Html::rawElement( 'li', array(), $link );
 203+ $link = $sk->link( $this->getTitle(), wfMsg( 'openstackmanager-addmember' ), array(),
 204+ array( 'action' => 'addmember', 'projectname' => $projectName ), array() );
 205+ $actions .= Html::rawElement( 'li', array(), $link );
 206+ $actions = Html::rawElement( 'ul', array(), $actions );
 207+ $projectOut .= Html::rawElement( 'td', array(), $actions );
206208 $projectsOut .= Html::rawElement( 'tr', array(), $projectOut );
207209 }
208210 if ( $projectsOut ) {

Status & tagging log