Skip to content

Commit

Permalink
Merge pull request #695 from TheRestartProject/RES-1948_click_through…
Browse files Browse the repository at this point in the history
…_volunteer

Allow click-through from volunteers to profile
  • Loading branch information
edwh authored Oct 23, 2023
2 parents c54328f + 46f9bfd commit 4fded65
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 112 deletions.
2 changes: 1 addition & 1 deletion lang/de/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
'volunteer_email_address' => 'Volunteer\'s email address (optional)',
'message_volunteer_email_address' => 'This field will invite the volunteer to join the group',
'volunteer_attended_button' => 'Volunteer attended',
'option_not_registered' => 'Not registered on Fixometer',
'option_not_registered' => 'Not registered on here',
'option_default' => '-- Select --',
'events' => 'Events',
'event' => 'Event',
Expand Down
2 changes: 1 addition & 1 deletion lang/en/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'volunteer_email_address' => 'Volunteer\'s email address (optional)',
'message_volunteer_email_address' => 'This field will invite the volunteer to join the group',
'volunteer_attended_button' => 'Volunteer attended',
'option_not_registered' => 'Not registered on Fixometer',
'option_not_registered' => 'Not registered on here',
'option_default' => '-- Select --',
'events' => 'Events',
'event' => 'Event',
Expand Down
2 changes: 1 addition & 1 deletion lang/fr-BE/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
'volunteer_email_address' => 'Adresse e-mail du bénévole (optionnel)',
'message_volunteer_email_address' => 'Ce champ invitera les bénévoles à rejoindre le Repair Café',
'volunteer_attended_button' => 'Bénévoles présents',
'option_not_registered' => 'Pas enregistré sur le Fixometer',
'option_not_registered' => 'Pas enregistré sur ce site',
'option_default' => '-- Sélectionner --',
'events' => 'Evénements',
'event' => 'Evénement',
Expand Down
2 changes: 1 addition & 1 deletion lang/fr/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
'volunteer_email_address' => 'Adresse e-mail du bénévole (optionnel)',
'message_volunteer_email_address' => 'Ce champ invitera les bénévoles à rejoindre le Repair Café',
'volunteer_attended_button' => 'Bénévoles présents',
'option_not_registered' => 'Pas enregistré sur le Fixometer',
'option_not_registered' => 'Pas enregistré sur ce site',
'option_default' => '-- Sélectionner --',
'events' => 'Evénements',
'event' => 'Evénement',
Expand Down
16 changes: 2 additions & 14 deletions resources/js/components/EventAttendance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,12 @@
{{ __('events.confirmed_none') }}
</p>
<hr />
<div v-if="upcoming" class="d-flex justify-content-end">
<!-- TODO LATER In due course this modal should become Vue components.-->
<a data-toggle="modal" data-target="#event-all-attended" href="#" class="mr-2">
{{ __('events.see_all') }}
</a>
</div>
<div v-else>
<div class="d-flex justify-content-between">
<div>
<div class="d-flex justify-content-between" v-if="!upcoming">
<b-btn variant="link" @click="addVolunteer">
{{ __('events.add_volunteer_modal_heading') }}
</b-btn>
<EventAddVolunteerModal :idevents="idevents" ref="addVolunteerModal" @hide="fetchVolunteers" />
<b-btn variant="link" data-toggle="modal" data-target="#event-all-attended" href="#">
{{ __('events.see_all') }}
</b-btn>
</div>
</div>
</b-tab>
Expand All @@ -73,9 +64,6 @@
<img class="icon" src="/images/add-icon.svg" />
{{ __('events.invite_to_join') }}
</a>
<a data-toggle="modal" data-target="#event-all-volunteers" href="#" class="mr-2" v-if="invited.length">
{{ __('events.see_all') }}
</a>
</div>
</b-tab>
</b-tabs>
Expand Down
15 changes: 12 additions & 3 deletions resources/js/components/EventAttendee.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="pl-4 pr-4">
<div class="pt-2 pb-2 blackbord d-flex justify-content-between">
<div class="d-flex w-100">
<b-img-lazy :src="profile" class="profile mr-2" rounded="circle" @error.native="brokenProfileImage" />
<a :href="link">
<b-img-lazy :src="profile" class="profile mr-2" rounded="circle" @error.native="brokenProfileImage" />
</a>
<div class="namewidth flex-grow-1">
<div class="d-flex flex-column">
<div :class="{
Expand All @@ -11,9 +13,9 @@
'd-flex': true,
'flex-wrap': true
}" :title="name">
<span class="pr-1 overflow-hidden ellipsis">
<a :href="link" class="pr-1 overflow-hidden ellipsis text-black">
{{ name }}
</span>
</a>
<span class="host" v-if="host">
{{ __('partials.host') }}
</span>
Expand Down Expand Up @@ -66,6 +68,13 @@ export default {
}
},
computed: {
link() {
if (this.attendee.user) {
return '/profile/' + this.attendee.user
} else {
return null
}
},
name() {
if (this.attendee.volunteer) {
// Volunteer registered on Restarters.
Expand Down
8 changes: 5 additions & 3 deletions resources/js/components/GroupVolunteer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div>
<div class="pt-2 pb-2 blackbord d-flex justify-content-between">
<div class="d-flex w-100">
<b-img-lazy :src="profile" class="profile mr-2" rounded="circle" @error.native="brokenProfileImage" />
<a :href="'/profile/' + volunteer.volunteer.id">
<b-img-lazy :src="profile" class="profile mr-2" rounded="circle" @error.native="brokenProfileImage" />
</a>
<div class="namewidth flex-grow-1">
<div class="d-flex flex-column">
<div :class="{
Expand All @@ -11,9 +13,9 @@
'd-flex': true,
'flex-wrap': true
}" :title="volunteer.volunteer.name">
<span class="pr-1 overflow-hidden ellipsis">
<a :href="'/profile/' + volunteer.volunteer.id" class="pr-1 overflow-hidden ellipsis text-black">
{{ volunteer.volunteer.name }}
</span>
</a>
<span class="host" v-if="host">
{{ __('partials.host') }}
</span>
Expand Down
2 changes: 0 additions & 2 deletions resources/views/events/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@
@include('includes.modals.event-invite-to')
@include('includes.modals.event-description')
@include('includes.modals.event-share-stats')
@include('includes.modals.event-all-volunteers')
@include('includes.modals.event-all-attended')
@include('includes.modals.event-request-review')

@endsection
44 changes: 0 additions & 44 deletions resources/views/includes/modals/event-all-attended.blade.php

This file was deleted.

42 changes: 0 additions & 42 deletions resources/views/includes/modals/event-all-volunteers.blade.php

This file was deleted.

0 comments on commit 4fded65

Please sign in to comment.