Permalink
Browse files

Merge pull request #20 from Engelbert/notifier-new-user

revamped notifieror new user/account and update user/account
  • Loading branch information...
2 parents f3f57bc + c5216b0 commit cd138ee5becc0ef6bb0ee4b38d37bf750952f723 @phpfreak committed Oct 10, 2012
Showing with 26 additions and 17 deletions.
  1. +9 −6 application/views/notifier/new_account.php
  2. +17 −11 application/views/notifier/updated_account.php
@@ -1,7 +1,10 @@
-<?php echo lang('hi john doe', $new_account->getContact()->getDisplayName()) ?>,
-<?php echo lang('user created your account', $new_account->getCreatedBy()->getContact()->getDisplayName()) ?>.
-<?php echo lang('visit and login', externalUrl(ROOT_URL)) ?>:
-<?php echo lang('username') ?>: <?php echo $new_account->getUsername() ?>
-<?php echo lang('password') ?>: <?php echo $raw_password ?>
---
+<?php echo lang('hi john doe', $new_account->getContact()->getDisplayName()) ?>,
+<?php echo "\n"?>
+<?php echo lang('user created your account', $new_account->getCreatedBy()->getContact()->getDisplayName()) ?>.
+<?php echo lang('visit and login', externalUrl(ROOT_URL)) ?>:
+<?php echo "\n"?>
+<?php echo lang('username') ?>: <?php echo $new_account->getUsername() ?>
+<?php echo "\n"?>
+<?php echo lang('password') ?>: <?php echo $raw_password ?>
+<?php echo "\n--\n"?>
<?php echo externalUrl(ROOT_URL) ?>
@@ -1,12 +1,18 @@
-<?php echo lang('hi john doe', $updated_account->getContact()->getDisplayName()) ?>,
-
-<?php echo lang('user updated your account', $updated_account->getUpdatedBy()->getContact()->getDisplayName()) ?>. <?php echo lang('visit and login', externalUrl(ROOT_URL)) ?>:
-<?php echo lang('username') ?>: <?php echo $updated_account->getUsername() ?>
-<?php if (trim($raw_password) != '') { ?>
-<?php echo lang('password') ?>: <?php echo $raw_password ?>
-<?php } else { ?>
-<?php echo lang('password unchanged') ?>
-<?php } // if?>
-
---
+<?php echo lang('hi john doe', $updated_account->getContact()->getDisplayName()) ?>,
+
+
+<?php echo lang('user updated your account', $updated_account->getUpdatedBy()->getContact()->getDisplayName()) ?>.
+<?php echo lang('visit and login', externalUrl(ROOT_URL)) ?>:
+
+
+<?php echo lang('username') ?>: <?php echo $updated_account->getUsername() ?>
+
+<?php if (trim($raw_password) != '') { ?>
+<?php echo lang('password') ?>: <?php echo $raw_password ?>
+<?php } else { ?>
+<?php echo lang('password unchanged') ?>
+<?php } // if?>
+
+
+--
<?php echo externalUrl(ROOT_URL) ?>

0 comments on commit cd138ee

Please sign in to comment.