diff --git a/app/pdfs/ticket_pdf.rb b/app/pdfs/ticket_pdf.rb index 306d5870..c4408e7c 100644 --- a/app/pdfs/ticket_pdf.rb +++ b/app/pdfs/ticket_pdf.rb @@ -69,9 +69,9 @@ class TicketPdf < Prawn::Document draw_text @conference.title.to_s, at: [@mid_horizontal + 30, cursor - 30], size: 12 draw_text @conference.organization.name.to_s, at: [@mid_horizontal + 30, cursor - 50], size: 12 if @conference.venue - draw_text @conference.venue.name, at: [@mid_horizontal + 30, cursor - 70] - draw_text @conference.venue.street, at: [@mid_horizontal + 30, cursor - 90] - draw_text @conference.venue.city, at: [@mid_horizontal + 30, cursor - 110] + draw_text @conference.venue_name, at: [@mid_horizontal + 30, cursor - 70] + draw_text @conference.venue_street, at: [@mid_horizontal + 30, cursor - 90] + draw_text @conference.city, at: [@mid_horizontal + 30, cursor - 110] end move_up 130 move_down @mid_vertical diff --git a/app/views/conference_registrations/show.html.haml b/app/views/conference_registrations/show.html.haml index d060e412..359b9de7 100644 --- a/app/views/conference_registrations/show.html.haml +++ b/app/views/conference_registrations/show.html.haml @@ -9,9 +9,9 @@ -if @conference.venue at %strong - = "#{@conference.venue.name}," - = "#{@conference.venue.street}," - = "#{@conference.venue.city} / #{@conference.venue.country_name}." + = "#{@conference.venue_name}," + = "#{@conference.venue_street}," + = "#{@conference.city} / #{@conference.country_name}." %small = date_string(@conference.start_date, @conference.end_date) - unless @conference.code_of_conduct.blank? diff --git a/app/views/conferences/_conference_details.html.haml b/app/views/conferences/_conference_details.html.haml index 08b73023..ea33887e 100644 --- a/app/views/conferences/_conference_details.html.haml +++ b/app/views/conferences/_conference_details.html.haml @@ -12,7 +12,7 @@ = date_string(conference.start_date, conference.end_date) - if conference.venue %p - = "#{conference.venue.city}/#{conference.venue.country_name}" + = "#{conference.city}/#{conference.country_name}" - unless conference.description.blank? %p = markdown(conference.description) diff --git a/app/views/physical_tickets/show.html.haml b/app/views/physical_tickets/show.html.haml index 7dbc44da..ec8e7379 100644 --- a/app/views/physical_tickets/show.html.haml +++ b/app/views/physical_tickets/show.html.haml @@ -9,9 +9,9 @@ - if @conference.venue at %strong - #{@conference.venue.name}, - #{@conference.venue.street}, - #{@conference.venue.city} / #{@conference.venue.country_name}. + #{@conference.venue_name}, + #{@conference.venue_street}, + #{@conference.city} / #{@conference.country_name}. %small = date_string(@conference.start_date, @conference.end_date) .row