From 70bbe141a928fa715845fc7d89f9b1bda2eccdd3 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 9 Oct 2023 15:34:34 +0100 Subject: [PATCH 1/4] Allow click-through from volunteers to profile --- resources/js/components/GroupVolunteer.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/js/components/GroupVolunteer.vue b/resources/js/components/GroupVolunteer.vue index b4ead58e1..09466e1ad 100644 --- a/resources/js/components/GroupVolunteer.vue +++ b/resources/js/components/GroupVolunteer.vue @@ -2,7 +2,9 @@
- + + +
- + {{ volunteer.volunteer.name }} - + {{ __('partials.host') }} From 9899ecb2fa360c7a30d8bfedad4eb62dcd1f3f76 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 9 Oct 2023 15:53:28 +0100 Subject: [PATCH 2/4] Allow click-through from volunteers to profile --- resources/js/components/EventAttendance.vue | 14 +----- resources/js/components/EventAttendee.vue | 8 ++-- resources/views/events/view.blade.php | 2 - .../modals/event-all-attended.blade.php | 44 ------------------- .../modals/event-all-volunteers.blade.php | 42 ------------------ 5 files changed, 6 insertions(+), 104 deletions(-) delete mode 100644 resources/views/includes/modals/event-all-attended.blade.php delete mode 100644 resources/views/includes/modals/event-all-volunteers.blade.php diff --git a/resources/js/components/EventAttendance.vue b/resources/js/components/EventAttendance.vue index 4d011d971..ae5f16346 100644 --- a/resources/js/components/EventAttendance.vue +++ b/resources/js/components/EventAttendance.vue @@ -39,21 +39,12 @@ {{ __('events.confirmed_none') }}


- -
+
{{ __('events.add_volunteer_modal_heading') }} - - {{ __('events.see_all') }} -
@@ -73,9 +64,6 @@ {{ __('events.invite_to_join') }} - - {{ __('events.see_all') }} -
diff --git a/resources/js/components/EventAttendee.vue b/resources/js/components/EventAttendee.vue index 672a66189..c4dfa48c3 100644 --- a/resources/js/components/EventAttendee.vue +++ b/resources/js/components/EventAttendee.vue @@ -2,7 +2,9 @@
- + + +
- + {{ name }} - + {{ __('partials.host') }} diff --git a/resources/views/events/view.blade.php b/resources/views/events/view.blade.php index 2b0299fc4..ec008e1f2 100644 --- a/resources/views/events/view.blade.php +++ b/resources/views/events/view.blade.php @@ -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 diff --git a/resources/views/includes/modals/event-all-attended.blade.php b/resources/views/includes/modals/event-all-attended.blade.php deleted file mode 100644 index 0bbc4dee2..000000000 --- a/resources/views/includes/modals/event-all-attended.blade.php +++ /dev/null @@ -1,44 +0,0 @@ - - diff --git a/resources/views/includes/modals/event-all-volunteers.blade.php b/resources/views/includes/modals/event-all-volunteers.blade.php deleted file mode 100644 index 32f37d508..000000000 --- a/resources/views/includes/modals/event-all-volunteers.blade.php +++ /dev/null @@ -1,42 +0,0 @@ - - From 2ce96606b09ca0c17229751b447da0a61aa3db16 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 16 Oct 2023 17:16:34 +0100 Subject: [PATCH 3/4] Don't link to profile for attendees not on Restarters. Change text. --- lang/de/events.php | 2 +- lang/en/events.php | 2 +- lang/fr-BE/events.php | 2 +- lang/fr/events.php | 2 +- resources/js/components/EventAttendee.vue | 11 +++++++++-- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/lang/de/events.php b/lang/de/events.php index ca2ce0a73..6410af39a 100644 --- a/lang/de/events.php +++ b/lang/de/events.php @@ -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', diff --git a/lang/en/events.php b/lang/en/events.php index d44f7ae5b..c912d9757 100644 --- a/lang/en/events.php +++ b/lang/en/events.php @@ -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', diff --git a/lang/fr-BE/events.php b/lang/fr-BE/events.php index f4552510f..843734e70 100644 --- a/lang/fr-BE/events.php +++ b/lang/fr-BE/events.php @@ -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', diff --git a/lang/fr/events.php b/lang/fr/events.php index f4552510f..843734e70 100644 --- a/lang/fr/events.php +++ b/lang/fr/events.php @@ -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', diff --git a/resources/js/components/EventAttendee.vue b/resources/js/components/EventAttendee.vue index c4dfa48c3..1912e1351 100644 --- a/resources/js/components/EventAttendee.vue +++ b/resources/js/components/EventAttendee.vue @@ -2,7 +2,7 @@
- +
@@ -13,7 +13,7 @@ 'd-flex': true, 'flex-wrap': true }" :title="name"> - + {{ name }} @@ -68,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. From 46f9bfdd3e179115cbcdaacffca1e4e85af6c081 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 23 Oct 2023 12:48:20 +0100 Subject: [PATCH 4/4] Only show "Add Volunteer" link for past events --- resources/js/components/EventAttendance.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/components/EventAttendance.vue b/resources/js/components/EventAttendance.vue index ae5f16346..3b720ca59 100644 --- a/resources/js/components/EventAttendance.vue +++ b/resources/js/components/EventAttendance.vue @@ -40,7 +40,7 @@


-
+
{{ __('events.add_volunteer_modal_heading') }}