Skip to content

Commit

Permalink
needed competition attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Dec 11, 2024
1 parent cab1a19 commit f3ce4bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/views/competitions/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<% provide(:title, @competition.display_name) %>
<%# We use this to hide the 'Events' information for competition which didn't declared rounds %>
<%= render layout: 'nav' do %>
<%= react_component("CompetitionTabs", {
tabs: @competition.tabs.as_json,
competition: @competition.as_json({ only: %w[name], methods: %w[has_rounds? has_schedule?]}),
competition: @competition.as_json({ methods: %w[city registration_open registration_close extra_registration_requirements has_fees? competition_events base_entry_fee using_payment_integrations? series_sibling_competitions main_event_id has_rounds? external_registration_page part_of_competition_series? contact use_wca_registration is_probably_over? registration_not_yet_opened? registration_past? competitor_limit competitor_limit_enabled venue_details external_website venue_address latitude_degrees longitude_degrees website has_schedule? country_iso2 events media number_of_bookmarks date_range information]}),
wcifEvents: @competition.events_wcif, wcifSchedule: @competition.schedule_wcif, locale: I18n.locale,
userInfo: current_user.as_json({
only: %w[wca_id unconfirmed_wca_id],
methods: [],
include: [],
})
}) %>
<%= render "time_limit_cutoff_format_info", competition: @competition %>
<% end %>

0 comments on commit f3ce4bb

Please sign in to comment.