Browse Source

Show user age on profile page

pull/27/head
Nafies Luthfi 7 years ago
parent
commit
984de08de3
  1. 2
      resources/lang/en/user.php
  2. 2
      resources/lang/id/user.php
  3. 4
      resources/views/users/partials/profile.blade.php
  4. 5
      resources/views/users/search.blade.php

2
resources/lang/en/user.php

@ -18,6 +18,8 @@ return [
'nieces' => 'Nieces',
'marriages' => 'Marriages',
'birth_order' => 'Birth Order',
'age' => 'Age',
'age_years' => 'year|years',
// Actions
'edit' => 'Edit Profile',

2
resources/lang/id/user.php

@ -18,6 +18,8 @@ return [
'nieces' => 'Keponakan',
'marriages' => 'Pernikahan',
'birth_order' => 'Anak ke',
'age' => 'Usia',
'age_years' => 'tahun',
// Actions
'edit' => 'Edit Profil',

4
resources/views/users/partials/profile.blade.php

@ -31,6 +31,10 @@
<td>{{ $user->dod }}</td>
</tr>
@endif
<tr>
<th>{{ trans('user.age') }}</th>
<td><div title="{{ $user->age_detail }}">{{ $user->age }} {{ trans_choice('user.age_years', $user->age) }}</div></td>
</tr>
@if ($user->email)
<tr>
<th>{{ trans('user.email') }}</th>

5
resources/views/users/search.blade.php

@ -27,8 +27,11 @@
@foreach ($chunkedUser as $user)
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-heading text-center">
{{ userPhoto($user, ['style' => 'width:100%;max-width:300px']) }}
@if ($user->age)
<div title="{{ $user->age_detail }}">{{ $user->age }} {{ trans_choice('user.age_years', $user->age) }}</div>
@endif
</div>
<div class="panel-body">
<h3 class="panel-title">{{ $user->profileLink() }} ({{ $user->gender }})</h3>

Loading…
Cancel
Save