http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84651

Revision: 84651
Author:   laner
Date:     2011-03-24 00:37:10 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
Made Special:NovaKey's display more consistent with the rest of the interface.

Modified Paths:
--------------
    trunk/extensions/OpenStackManager/OpenStackManager.i18n.php
    trunk/extensions/OpenStackManager/special/SpecialNovaKey.php

Modified: trunk/extensions/OpenStackManager/OpenStackManager.i18n.php
===================================================================
--- trunk/extensions/OpenStackManager/OpenStackManager.i18n.php 2011-03-24 
00:35:39 UTC (rev 84650)
+++ trunk/extensions/OpenStackManager/OpenStackManager.i18n.php 2011-03-24 
00:37:10 UTC (rev 84651)
@@ -154,6 +154,7 @@
        'openstackmanager-importkey' => 'Import a new key',
        'openstackmanager-name' => 'Name',
        'openstackmanager-fingerprint' => 'Fingerprint',
+       'openstackmanager-keys' => 'Keys',
        'openstackmanager-invalidkeypair' => 'Invalid keypair location 
configured.',
        'openstackmanager-keypairimportfailed' => 'Failed to import keypair.',
        'openstackmanager-keypairimported' => 'Imported keypair.',

Modified: trunk/extensions/OpenStackManager/special/SpecialNovaKey.php
===================================================================
--- trunk/extensions/OpenStackManager/special/SpecialNovaKey.php        
2011-03-24 00:35:39 UTC (rev 84650)
+++ trunk/extensions/OpenStackManager/special/SpecialNovaKey.php        
2011-03-24 00:37:10 UTC (rev 84651)
@@ -194,14 +194,18 @@
                        $out .= $sk->link( $this->getTitle(), wfMsgHtml( 
'openstackmanager-importkey' ), array(), array( 'action' => 'import' ) );
                        $keypairs = $this->userLDAP->getKeypairs();
                        $keysOut = '';
+                       $keysOut .= Html::element( 'th', array(), wfMsg( 
'openstackmanager-keys' ) );
+                       $keysOut .= Html::element( 'th', array(), wfMsg( 
'openstackmanager-actions' ) );
                        foreach ( $keypairs as $hash => $key ) {
                                $keyOut = Html::element( 'td', array(), $key );
                                $msg = wfMsgHtml( 'openstackmanager-delete' );
                                $link = $sk->link( $this->getTitle(), $msg, 
array(), array( 'action' => 'delete', 'hash' => $hash ) );
-                               $keyOut .= Html::rawElement( 'td', array(), 
$link );
+                               $action = Html::rawElement( 'li', array(), 
$link );
+                               $action = Html::rawElement( 'ul', array(), 
$action );
+                               $keyOut .= Html::rawElement( 'td', array(), 
$action );
                                $keysOut .= Html::rawElement( 'tr', array(), 
$keyOut );
                        }
-                       $out .= Html::rawElement( 'table', array(), $keysOut );
+                       $out .= Html::rawElement( 'table', array( 'id' => 
'novakeylist', 'class' => 'wikitable' ), $keysOut );
                } else {
                        $wgOut->addWikiMsg( 'openstackmanager-invalidkeypair' );
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to