Skip to content

Commit

Permalink
Show a minus for a user's state if the state cannot be determined
Browse files Browse the repository at this point in the history
refs #8826
  • Loading branch information
Johannes Meyer committed Jun 1, 2015
1 parent 601b720 commit 89311f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/scripts/user/show.phtml
Expand Up @@ -28,7 +28,7 @@ if ($this->hasPermission('config/application/users/edit') && $backend instanceof
<?php endif ?>
<div class="user-header">
<p class="user-name"><strong><?= $this->escape($user->user_name); ?></strong></p> <?= $editLink; ?>
<p class="user-state"><strong><?= $this->translate('State'); ?>:</strong> <?= $user->is_active ? $this->translate('Active') : $this->translate('Inactive'); ?></p>
<p class="user-state"><strong><?= $this->translate('State'); ?>:</strong> <?= $user->is_active === null ? '-' : ($user->is_active ? $this->translate('Active') : $this->translate('Inactive')); ?></p>
<p class="user-created"><strong><?= $this->translate('Created at'); ?>:</strong> <?= $user->created_at === null ? '-' : $this->formatDateTime($user->created_at); ?></p>
<p class="user-modified"><strong><?= $this->translate('Last modified'); ?>:</strong> <?= $user->last_modified === null ? '-' : $this->formatDateTime($user->last_modified); ?></p>
</div>
Expand Down

0 comments on commit 89311f9

Please sign in to comment.