_info.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 $this
  12. * @var dektrium\user\models\User $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">
  31. <?= Yii::t('user', 'Confirmed at {0, date, MMMM dd, YYYY HH:mm}', [$user->confirmed_at]) ?>
  32. </td>
  33. <?php else: ?>
  34. <td class="text-danger"><?= Yii::t('user', 'Unconfirmed') ?></td>
  35. <?php endif ?>
  36. </tr>
  37. <tr>
  38. <td><strong><?= Yii::t('user', 'Block status') ?>:</strong></td>
  39. <?php if ($user->isBlocked): ?>
  40. <td class="text-danger">
  41. <?= Yii::t('user', 'Blocked at {0, date, MMMM dd, YYYY HH:mm}', [$user->blocked_at]) ?>
  42. </td>
  43. <?php else: ?>
  44. <td class="text-success"><?= Yii::t('user', 'Not blocked') ?></td>
  45. <?php endif ?>
  46. </tr>
  47. </table>
  48. <?php $this->endContent() ?>