-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cab1a19
commit f3ce4bb
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %> |