From 164101f2fed6c231e84d85cbbbf019cd34d30f7e Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Fri, 12 Aug 2016 13:21:47 +0530 Subject: [PATCH] change "purchase" to "get" in views --- app/controllers/payments_controller.rb | 2 +- app/controllers/ticket_purchases_controller.rb | 4 ++-- app/views/admin/tickets/index.html.haml | 2 +- app/views/conference/_tickets.html.haml | 4 ++-- app/views/conference_registrations/show.html.haml | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/controllers/payments_controller.rb b/app/controllers/payments_controller.rb index 5b1259d1..db42a201 100644 --- a/app/controllers/payments_controller.rb +++ b/app/controllers/payments_controller.rb @@ -19,7 +19,7 @@ class PaymentsController < ApplicationController if @payment.purchase && @payment.save update_purchased_ticket_purchases redirect_to conference_conference_registration_path(@conference.short_title), - notice: 'Thanks! You have purchased your tickets successfully.' + notice: 'Thanks! Your ticket is booked successfully.' else @total_amount_to_pay = Ticket.total_price(@conference, current_user, paid: false) @unpaid_ticket_purchases = current_user.ticket_purchases.unpaid.by_conference(@conference) diff --git a/app/controllers/ticket_purchases_controller.rb b/app/controllers/ticket_purchases_controller.rb index 2d9d269b..a8749eed 100644 --- a/app/controllers/ticket_purchases_controller.rb +++ b/app/controllers/ticket_purchases_controller.rb @@ -9,10 +9,10 @@ class TicketPurchasesController < ApplicationController if message.blank? if current_user.ticket_purchases.by_conference(@conference).unpaid.any? redirect_to new_conference_payment_path, - notice: 'Please pay here to purchase tickets.' + notice: 'Please pay here to get tickets.' else redirect_to conference_tickets_path(@conference.short_title), - error: 'Please purchase at least one ticket to continue.' + error: 'Please get at least one ticket to continue.' end else redirect_to conference_conference_registration_path(@conference.short_title), diff --git a/app/views/admin/tickets/index.html.haml b/app/views/admin/tickets/index.html.haml index 2a2bac6d..486da0ef 100644 --- a/app/views/admin/tickets/index.html.haml +++ b/app/views/admin/tickets/index.html.haml @@ -3,7 +3,7 @@ .page-header %h1 Tickets %p.text-muted - Tickets to purchase during registration + Tickets to get during registration - if @conference.tickets.any? .row .col-md-12 diff --git a/app/views/conference/_tickets.html.haml b/app/views/conference/_tickets.html.haml index 41108b78..8a202295 100644 --- a/app/views/conference/_tickets.html.haml +++ b/app/views/conference/_tickets.html.haml @@ -5,7 +5,7 @@ Support =@conference.short_title %p.lead - To support our event you can purchase these tickets + To support our event you can get these tickets - @conference.tickets.each_slice(4) do |slice| .row.row-centered - slice.each do |ticket| @@ -20,6 +20,6 @@ = markdown(ticket.description) %p.text-center = link_to(conference_tickets_path(@conference.short_title), class: 'btn btn-success') do - Buy Ticket + Get Ticket = humanized_money_with_symbol ticket.price diff --git a/app/views/conference_registrations/show.html.haml b/app/views/conference_registrations/show.html.haml index 30dff195..591d0777 100644 --- a/app/views/conference_registrations/show.html.haml +++ b/app/views/conference_registrations/show.html.haml @@ -104,10 +104,10 @@ = humanized_money tickets.first.price %br - if @tickets.any? - = link_to 'Buy more tickets', conference_tickets_path(@conference.short_title), class: "btn btn-default" + = link_to 'Get more tickets', conference_tickets_path(@conference.short_title), class: "btn btn-default" - else You haven't bought any tickets. - = link_to 'Please buy some tickets to support us!', conference_tickets_path(@conference.short_title) + = link_to 'Please get some tickets to support us!', conference_tickets_path(@conference.short_title) %p (Your participation won't be valid without getting a ticket)