Skip to content

Commit

Permalink
Clarify things in the lottery entrant detail card
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Dec 4, 2024
1 parent fb96a4e commit 076df82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
<h6 class="text-end fw-bold"><%= "#{pluralize(presenter.number_of_tickets, 'ticket')}" %></h6>
</div>
</div>
<hr/>
<% if current_user.present? && (current_user.admin? || current_user.steward_of?(presenter.organization) || current_user.email == presenter.email) %>
<hr/>
<% if presenter.calculation.present? %>
<%= render partial: "ticket_calculations_table", locals: { presenter: presenter } %>
<hr/>
<% end %>
<%= render partial: "historical_facts_table", locals: { presenter: presenter } %>
<%= render partial: "historical_facts_table", locals: { presenter: presenter } %>
<% else %>
<p class="fw-bold">If this entrant is you, please log in to see calculation details, or sign up if you don't have an OpenSplitTime
account.</p>
<p>You will need to use the same email that you used to apply to the lottery in Ultrasignup.</p>
<% end %>
<hr/>
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
</tr>
<tr>
<td><%= presenter.calculation.volunteer_ticket_count %></td>
<td>Years volunteering at Hardrock / 5 (rounded down)</td>
<td>Tickets for years volunteering at Hardrock (Years divided by 5, rounded down) For example, 3 years = 0 tickets and 10 years = 2 tickets.</td>
</tr>
<tr>
<td><%= presenter.calculation.volunteer_major_ticket_count %></td>
<td>One-time service tickets (shown as VMajor)</td>
<td>One-time service tickets (shown as VYearMaj)</td>
</tr>
<tr>
<td>1</td>
Expand All @@ -45,11 +45,11 @@
</tr>
<tr>
<td><%= presenter.calculation.volunteer_ticket_count %></td>
<td>Years volunteering at Hardrock / 5 (rounded down)</td>
<td>Tickets for years volunteering at Hardrock (Years divided by 5, rounded down) For example, 3 years = 0 tickets and 10 years = 2 tickets.</td>
</tr>
<tr>
<td><%= presenter.calculation.volunteer_major_ticket_count %></td>
<td>One-time service tickets (shown as VMajor)</td>
<td>One-time service tickets (shown as VYearMaj)</td>
</tr>
<tr class="fw-bold">
<td><%= presenter.calculation.dns_ticket_count + presenter.calculation.volunteer_ticket_count + presenter.calculation.volunteer_major_ticket_count %></td>
Expand Down

0 comments on commit 076df82

Please sign in to comment.