Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registration count added on competition info page #10167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/views/competitions/_competition_info.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@
</dl>
<% end %>

<dl class="dl-horizontal">
<dt><%= t '.registered_competitors' %></dt>
<dd>
<%= competition.registrations.accepted.count %>
</dd>
</dl>

<dl class="dl-horizontal">
<dt><%= t '.number_of_bookmarks' %></dt>
<dd>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,7 @@ en:
part_of_a_series_list: "This competition is part of the %{name} Competition Series. Other competitions in this Series are:"
series_registration_warning_html: "Note: You can submit a registration for all competitions in a Series, but only one of those registrations can be confirmed and accepted. <b>You will only be allowed to compete in one of the Series competitions!</b>"
competitor_limit: "Competitor limit"
registered_competitors: "Registered competitors"
competitor_limit_is: "There is a competitor limit of %{competitor_limit} competitors."
no_competitor_limit: "There is no competitor limit."
entry_fee_is: "The base registration fee for this competition is %{base_entry_fee}."
Expand Down