Skip to content

Commit

Permalink
feat: add number of life events on the contact profile page (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss authored Jan 3, 2019
1 parent db44f5d commit 03b6d47
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ New features:

Enhancements:

*
* Add number of life events on the contact profile page

Fixes:

Expand Down
5 changes: 5 additions & 0 deletions public/changelog.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"entries": [
{
"date": "Jan 02, 2019",
"title": "Enhancement: number of life events",
"description": "You can now see the number of life events when loading the contact profile page. This lets you know if there is something important that needs to be seen when looking at a contact."
},
{
"date": "Dec 26, 2018",
"title": "Enhancement: LinkedIn address",
Expand Down
2 changes: 1 addition & 1 deletion resources/views/people/profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
@if (auth()->user()->profile_new_life_event_badge_seen == false)
<span class="bg-light-green f7 mr2 ph2 pv1 br2">{{ trans('app.new') }}</span>
@endif
{{ trans('people.life_event_list_tab_life_events') }}
{{ trans('people.life_event_list_tab_life_events') }} ({{ $contact->lifeEvents()->count() }})
</span>
<span @click="updateDefaultProfileView('notes')" :class="[global_profile_default_view == 'notes' ? 'f6 fl bb bt ph3 pv2 dib b br--right br mb4 b--gray-monica' : 'f6 fl bb bt ph3 pv2 dib bg-gray-monica br--right br pointer mb4 b--gray-monica']">{{ trans('people.life_event_list_tab_other') }}</span>
<span @click="updateDefaultProfileView('photos')" :class="[global_profile_default_view == 'photos' ? 'f6 fl bb bt ph3 pv2 dib b br2 br--right br mb4 b--gray-monica' : 'f6 fl bb bt ph3 pv2 dib bg-gray-monica br2 br--right br pointer mb4 b--gray-monica']">Photos</span>
Expand Down

0 comments on commit 03b6d47

Please sign in to comment.