Skip to content

Commit

Permalink
add temp file to compare diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Feb 2, 2025
1 parent a3e42b6 commit 8ec12f0
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions app/views/conference_registrations/_total_purchased_tmp.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
------------ SnapCon:
.col-md-12
- @total_price_per_currency.each do |currency, total_price|
%h4
Total Purchased (#{currency}):
= humanized_money_with_symbol(total_price)
%ul
- @total_price_per_ticket_per_currency.select { |(id, curr)| curr == currency }.each do |(ticket_id, curr), total_amount|
- purchase = @purchases.find { |p| p.ticket_id == ticket_id && p.currency == curr }
%li
- title = purchase.title.titleize.gsub(/(?i)\bticket\b/, 'Tickets')
- title = title.include?('Tickets') ? title : "#{title} Tickets"
= "#{@total_quantity[[ticket_id, currency]]} #{title} for "
= humanized_money_with_symbol(total_amount)
.btn-group{ role: 'group' }
= link_to 'View all tickets',
conference_physical_tickets_path(@conference.short_title),
class: 'btn btn-success'
= link_to 'Get more tickets',
conference_tickets_path(@conference.short_title),
class: 'btn btn-default'



----------- OSEM:
Total Purchased:
= "(#{@tickets.first.price.symbol}#{humanized_money @total_price})"
%ul
.col-md-12
- @ticket_payments.each_pair do |ticket_id, tickets|
%li
= @total_quantity[ticket_id]
= tickets.first.title
= pluralize(@total_quantity[ticket_id], 'Ticket')
for
= tickets.first.price.symbol
= humanized_money @total_price_per_ticket[ticket_id]
%br
.btn-group{ role: 'group' }
= link_to 'View all tickets',
conference_physical_tickets_path(@conference.short_title),
class: 'btn btn-success'
= link_to 'Get more tickets',
conference_tickets_path(@conference.short_title),
class: 'btn btn-default'

0 comments on commit 8ec12f0

Please sign in to comment.