Skip to content

Commit

Permalink
Removes venue details from event invitation emails if event is virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
matyikriszta committed Oct 26, 2022
1 parent 570133d commit c642833
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/views/event_invitation_mailer/attending.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

.content
%table
= render partial: 'shared_mailers/venue', locals: { host: @event.venue, address: @host_address }
- if @event.venue.present?
= render partial: 'shared_mailers/venue', locals: { host: @event.venue, address: @host_address }
%tr
%td
%p If you have any trouble finding the venue, give one of the organisers a call:
Expand Down
7 changes: 4 additions & 3 deletions app/views/event_invitation_mailer/invite_coach.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
%small #{humanize_date(@event.date_and_time, @event.ends_at, with_time: true)}
= link_to 'View invitation and RSVP', full_url_for(event_invitation_url(event_id: @event.slug, token: @invitation.token)), class: 'btn'

.content
%table
= render partial: 'shared_mailers/venue', locals: { host: @event.venue, address: @host_address }
- if @event.venue.present?
.content
%table
= render partial: 'shared_mailers/venue', locals: { host: @event.venue, address: @host_address }

.content
%table
Expand Down
7 changes: 4 additions & 3 deletions app/views/event_invitation_mailer/invite_student.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
%small #{humanize_date(@event.date_and_time, @event.ends_at, with_time: true)}
= link_to 'View invitation and RSVP', full_url_for(event_invitation_url(event_id: @event.slug, token: @invitation.token)), class: 'btn'

.content
%table
= render partial: 'shared_mailers/venue', locals: { host: @event.venue, address: @host_address }
- if @event.venue.present?
.content
%table
= render partial: 'shared_mailers/venue', locals: { host: @event.venue, address: @host_address }

.content
%table
Expand Down

0 comments on commit c642833

Please sign in to comment.