Skip to content

Commit

Permalink
User details page few more user information available
Browse files Browse the repository at this point in the history
  • Loading branch information
shahariaazam committed Jun 6, 2020
1 parent ad8d278 commit 72ac1ae
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
54 changes: 52 additions & 2 deletions templates/users/details.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@
<td>{{ user.getUuid }}</td>
</tr>
<tr>
<td>Fist Name</td>
<td>Fist bame</td>
<td>{{ user.getFirstName }}</td>
</tr>
<tr>
<td>Last Name</td>
<td>Last name</td>
<td>{{ user.getLastName }}</td>
</tr>
<tr>
<td>Email address</td>
<td>{{ user.getEmail }}</td>
</tr>
<tr>
<td>User slug</td>
<td>{{ user.getUserSlug }}</td>
</tr>
<tr>
<td>Gender</td>
<td>{{ user.getGender }}</td>
Expand All @@ -45,6 +53,18 @@
<td>Timezone</td>
<td>{{ user.getTimezone }}</td>
</tr>
</table>
</div>
</div>
</div>
</div>

<div class="card mb-4">
<div class="card-header">Additional Information</div>
<div class="card-body">
<div class="row">
<div class="col-sm-12 col-md-4">
<table class="table table-condensed">
<tr>
<td>Last logged in at</td>
<td>{{ user.getLastLoggedInAt|ago }}</td>
Expand All @@ -63,6 +83,36 @@
</tr>
</table>
</div>
<div class="col-sm-12 col-md-8">
<table class="table table-condensed">
<tr>
<td>Email address verified?</td>
<td>
{% if user.isEmailVerified == "true" %}
Yes
{% else %}
{% if user.getEmailVerificationToken is not empty %}
Pending Verification
{% else %}
No
{% endif %}
{% endif %}
</td>
</tr>
<tr>
<td>TOS accepted ?</td>
<td>{{ user.getIsTosAccepted == "true" ? "Yes" : "No" }}</td>
</tr>
<tr>
<td>Roles</td>
<td>{{ user.getRoles|join(", ") }}</td>
</tr>
<tr>
<td>Last updated at</td>
<td data-value="{{ user.getUpdatedAt|date('Y-m-d H:i:s') }}">{{ user.getUpdatedAt|ago }}</td>
</tr>
</table>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions tests/Controller/AuthControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,8 @@ public static function getAuthenticatedClient(User $user = null, $client = null)
}

/**
* @param KernelBrowser $client
* @param $path
*
* @param array $roles
* @return int
*/
public static function checkPathIsAccessibleByRoles(KernelBrowser $client, $path, array $roles)
Expand Down

0 comments on commit 72ac1ae

Please sign in to comment.