_info.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /*
  3. * This file is part of the Dektrium project
  4. *
  5. * (c) Dektrium project <http://github.com/dektrium>
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * @var yii\web\View
  12. * @var dektrium\user\models\User
  13. */
  14. ?>
  15. <?php $this->beginContent('@dektrium/user/views/admin/update.php', ['user' => $user]) ?>
  16. <table class="table">
  17. <tr>
  18. <td><strong><?= Yii::t('user', 'Registration time') ?>:</strong></td>
  19. <td><?= Yii::t('user', '{0, date, MMMM dd, YYYY HH:mm}', [$user->created_at]) ?></td>
  20. </tr>
  21. <?php if ($user->registration_ip !== null): ?>
  22. <tr>
  23. <td><strong><?= Yii::t('user', 'Registration IP') ?>:</strong></td>
  24. <td><?= $user->registration_ip ?></td>
  25. </tr>
  26. <?php endif ?>
  27. <tr>
  28. <td><strong><?= Yii::t('user', 'Confirmation status') ?>:</strong></td>
  29. <?php if ($user->isConfirmed): ?>
  30. <td class="text-success"><?= Yii::t('user', 'Confirmed at {0, date, MMMM dd, YYYY HH:mm}', [$user->confirmed_at]) ?></td>
  31. <?php else: ?>
  32. <td class="text-danger"><?= Yii::t('user', 'Unconfirmed') ?></td>
  33. <?php endif ?>
  34. </tr>
  35. <tr>
  36. <td><strong><?= Yii::t('user', 'Block status') ?>:</strong></td>
  37. <?php if ($user->isBlocked): ?>
  38. <td class="text-danger"><?= Yii::t('user', 'Blocked at {0, date, MMMM dd, YYYY HH:mm}', [$user->blocked_at]) ?></td>
  39. <?php else: ?>
  40. <td class="text-success"><?= Yii::t('user', 'Not blocked') ?></td>
  41. <?php endif ?>
  42. </tr>
  43. </table>
  44. <?php $this->endContent() ?>