Skip to content

Commit

Permalink
feat: add total of participants in activity (#5474)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusDick committed Sep 1, 2021
1 parent 127c891 commit 9194eb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ Matthew Fitzgerald @mfitzgerald2 <matt@mfitz.net>
Simon Van Accoleyen @SimonVanacco <simon@vanacco.fr>
Michael Bianco <mike@mikebian.co>
Ben Fesili @benfes
Markus Dick @markusdick
2 changes: 1 addition & 1 deletion resources/js/components/people/activity/ActivityList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<li v-if="activity.attendees.total > 1" class="di">
<ul class="di list" :class="[ dirltr ? 'mr3' : 'ml3' ]">
<li class="di">
{{ $t('people.activities_list_participants') }}
{{ $t('people.activities_list_participants', { total: activity.attendees.total - 1}) }}
</li>
<li v-for="attendee in activity.attendees.contacts.filter(c => c.id !== contactId)" :key="attendee.id" class="di mr2">
<a :href="'people/' + attendee.hash_id">{{ attendee.complete_name }}</a>
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/en/people.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
'activities_profile_year_summary_activity_types' => 'Here is a breakdown of the type of activities you’ve done together in :year',
'activities_profile_year_summary' => 'Here is what you two have done in :year',
'activities_profile_number_occurences' => ':value activity|:value activities',
'activities_list_participants' => 'Participants:',
'activities_list_participants' => 'Participants ({total}):',
'activities_list_emotions' => 'Emotions felt:',
'activities_list_date' => 'Happened on',
'activities_list_category' => 'Category:',
Expand Down

0 comments on commit 9194eb3

Please sign in to comment.