Revision: 46036
Author:   tparscal
Date:     2009-01-22 22:13:31 +0000 (Thu, 22 Jan 2009)

Log Message:
-----------
Added a message on the settings page.

Modified Paths:
--------------
    trunk/extensions/DataCenter/DataCenter.i18n.php
    trunk/extensions/DataCenter/Views/Settings.php

Modified: trunk/extensions/DataCenter/DataCenter.i18n.php
===================================================================
--- trunk/extensions/DataCenter/DataCenter.i18n.php     2009-01-22 22:10:56 UTC 
(rev 46035)
+++ trunk/extensions/DataCenter/DataCenter.i18n.php     2009-01-22 22:13:31 UTC 
(rev 46036)
@@ -201,6 +201,7 @@
        'datacenter-ui-body-notice-removing-field' => 'Removing this field will 
result in the removal of the following links and all data associated with them 
and cannot be recovered from. Do you want to continue with the removal?',
        'datacenter-ui-body-important-configuring-field' => 'Changing the 
format of this field may cause related data to be interpreted incorectly, 
espcially when switching between textual, numeric and boolean formats.',
        'datacenter-ui-body-important-welcome' => 'Welcome to the beta-testing 
of DataCenter. Please poke around and give feedback Trevor Parscal. If you are 
going to help out, take a look at the media wiki extension page for DataCenter 
which has a list of feature priorities.',
+       'datacenter-ui-body-important-settings' => 'These settings may affect 
the system in irreversable ways. Please be careful when making adjustments.',
        'datacenter-ui-body-error-invalid-request' => 'You have requested a 
page with an invalid path.',
        // Tabs
        'datacenter-ui-tab-racks' => 'Racks',

Modified: trunk/extensions/DataCenter/Views/Settings.php
===================================================================
--- trunk/extensions/DataCenter/Views/Settings.php      2009-01-22 22:10:56 UTC 
(rev 46035)
+++ trunk/extensions/DataCenter/Views/Settings.php      2009-01-22 22:13:31 UTC 
(rev 46036)
@@ -13,6 +13,22 @@
        public function main(
                $path
        ) {
-               return __CLASS__;
+               return DataCenterUI::renderLayout(
+                       'columns',
+                       array(
+                               DataCenterUI::renderLayout(
+                                       'columns',
+                                       array(
+                                               DataCenterUI::renderWidget(
+                                                       'body',
+                                                       array(
+                                                               'message' => 
'important-settings',
+                                                               'style' => 
'important'
+                                                       )
+                                               )
+                                       )
+                               )
+                       )
+               );
        }
 }
\ No newline at end of file



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

Reply via email to