diff --git a/modules/user/views/layouts/yum.php b/modules/user/views/layouts/yum.php index cde8d85..7636040 100644 --- a/modules/user/views/layouts/yum.php +++ b/modules/user/views/layouts/yum.php @@ -1,28 +1,18 @@ clientScript->registerCssFile( - Yii::app()->getAssetManager()->publish( - Yii::getPathOfAlias('user.assets.css').'/yum.css')); - -$this->beginContent(Yum::module()->baseLayout); ?> - -
+ Yii::app()->clientScript->registerCssFile( + Yii::app()->getAssetManager()->publish( + Yii::getPathOfAlias('user.assets.css').'/yum.css')); + $this->beginContent(Yum::module()->baseLayout); ?> debug) { - echo CHtml::openTag('div', array('class' => 'container yumwarning')); - echo sprintf( - 'You are running the Yii User Management Module %s in Debug Mode!', - Yum::module()->version); - echo CHtml::closeTag('div'); -} + if (Yum::module()->debug) { + echo CHtml::openTag('div', array('class' => 'alert alert-danger')); + echo sprintf( + 'You are running the Yii User Management Module %s in Debug Mode!', + Yum::module()->version); + echo CHtml::closeTag('div'); + } ?> -
-
- -
-
-
- -endContent(); ?> +endContent(); ?> \ No newline at end of file diff --git a/modules/user/views/user/changepassword.php b/modules/user/views/user/changepassword.php index cc9d740..4e8000b 100644 --- a/modules/user/views/user/changepassword.php +++ b/modules/user/views/user/changepassword.php @@ -1,6 +1,6 @@ pageTitle = Yum::t("change password"); -echo '

'. Yum::t('change password') .'

'; +echo '

'. Yum::t('change password') .'

'; $this->breadcrumbs = array( Yum::t("Change password"));