From 788727f92022c066fb128f782dbffae554d84baa Mon Sep 17 00:00:00 2001 From: p31729568 Date: Fri, 28 Jun 2019 11:07:33 +0800 Subject: [PATCH] competition gcc dev 2019 --- .../_qg_second_competition.html.erb | 96 +++++++------------ app/views/competitions/show.html.erb | 2 + 2 files changed, 34 insertions(+), 64 deletions(-) diff --git a/app/views/competitions/_qg_second_competition.html.erb b/app/views/competitions/_qg_second_competition.html.erb index da4aa51f..675fa41e 100644 --- a/app/views/competitions/_qg_second_competition.html.erb +++ b/app/views/competitions/_qg_second_competition.html.erb @@ -1,65 +1,33 @@ -

-

-
-
- - +<% index = 0 %> +
+<% index += 1 %> +
+<% index += 1 %> + +<% @competition.competition_stages.each_with_index do |stage, i| %> +
+
+ <% stage.competition_stage_sections.each do |section| %> + + <% end %> +
-
-
-
- - -
-
-
-
- - -
-
-

-

-

\ No newline at end of file + <% index += 1 %> +<% end %> + +
+<% index += 1 %> +
+<% index += 1 %> +
diff --git a/app/views/competitions/show.html.erb b/app/views/competitions/show.html.erb index 67e19f65..8de9de3e 100644 --- a/app/views/competitions/show.html.erb +++ b/app/views/competitions/show.html.erb @@ -7,5 +7,7 @@ <%= render :partial => "qg_competition" %> <% elsif @competition.identifier == "gcc-annotation-2018" %> <%= render :partial => "annotation_2018_competition" %> + <% elsif @competition.identifier == "gcc-dev-2019" %> + <%= render :partial => "qg_second_competition" %> <% end %>
\ No newline at end of file