From 076df82d47ce9d96186b538a7278512051004ab7 Mon Sep 17 00:00:00 2001 From: moveson Date: Tue, 3 Dec 2024 19:24:30 -0700 Subject: [PATCH] Clarify things in the lottery entrant detail card --- .../_lottery_entrant_with_tickets.html.erb | 8 ++++++-- .../lottery_entrants/_ticket_calculations_table.html.erb | 8 ++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/views/lottery_entrants/_lottery_entrant_with_tickets.html.erb b/app/views/lottery_entrants/_lottery_entrant_with_tickets.html.erb index 7f25879cf..99f436ff3 100644 --- a/app/views/lottery_entrants/_lottery_entrant_with_tickets.html.erb +++ b/app/views/lottery_entrants/_lottery_entrant_with_tickets.html.erb @@ -15,13 +15,17 @@
<%= "#{pluralize(presenter.number_of_tickets, 'ticket')}" %>
+
<% if current_user.present? && (current_user.admin? || current_user.steward_of?(presenter.organization) || current_user.email == presenter.email) %> -
<% if presenter.calculation.present? %> <%= render partial: "ticket_calculations_table", locals: { presenter: presenter } %>
<% end %> - <%= render partial: "historical_facts_table", locals: { presenter: presenter } %> + <%= render partial: "historical_facts_table", locals: { presenter: presenter } %> + <% else %> +

If this entrant is you, please log in to see calculation details, or sign up if you don't have an OpenSplitTime + account.

+

You will need to use the same email that you used to apply to the lottery in Ultrasignup.

<% end %>
diff --git a/app/views/lottery_entrants/_ticket_calculations_table.html.erb b/app/views/lottery_entrants/_ticket_calculations_table.html.erb index 9eaaab172..2c3e507cc 100644 --- a/app/views/lottery_entrants/_ticket_calculations_table.html.erb +++ b/app/views/lottery_entrants/_ticket_calculations_table.html.erb @@ -16,11 +16,11 @@ <%= presenter.calculation.volunteer_ticket_count %> - Years volunteering at Hardrock / 5 (rounded down) + Tickets for years volunteering at Hardrock (Years divided by 5, rounded down) For example, 3 years = 0 tickets and 10 years = 2 tickets. <%= presenter.calculation.volunteer_major_ticket_count %> - One-time service tickets (shown as VMajor) + One-time service tickets (shown as VYearMaj) 1 @@ -45,11 +45,11 @@ <%= presenter.calculation.volunteer_ticket_count %> - Years volunteering at Hardrock / 5 (rounded down) + Tickets for years volunteering at Hardrock (Years divided by 5, rounded down) For example, 3 years = 0 tickets and 10 years = 2 tickets. <%= presenter.calculation.volunteer_major_ticket_count %> - One-time service tickets (shown as VMajor) + One-time service tickets (shown as VYearMaj) <%= presenter.calculation.dns_ticket_count + presenter.calculation.volunteer_ticket_count + presenter.calculation.volunteer_major_ticket_count %>