diff --git a/app/assets/javascripts/admins/competition_settings/index.js b/app/assets/javascripts/admins/competition_settings/index.js index 40a14fe1c..cd10aeb4f 100644 --- a/app/assets/javascripts/admins/competition_settings/index.js +++ b/app/assets/javascripts/admins/competition_settings/index.js @@ -145,8 +145,8 @@ $(function () { '
\n' + '
\n' + '
\n' + - ' \n' + - ' \n' + + ' \n' + + ' \n' + ' ' $("#linkForm").append(html) }) diff --git a/app/views/admins/competition_settings/index.html.erb b/app/views/admins/competition_settings/index.html.erb index 5a20cc81e..47a6c6678 100644 --- a/app/views/admins/competition_settings/index.html.erb +++ b/app/views/admins/competition_settings/index.html.erb @@ -152,6 +152,12 @@
+ <% @competition.competition_modules.each do |com_module| %> + <% case com_module.module_type %> + <% when 'home' %> + + <% end %> + <% end %>
@@ -250,7 +256,7 @@
资料下载
- +
diff --git a/app/views/competitions/competitions/common_header.json.jbuilder b/app/views/competitions/competitions/common_header.json.jbuilder index a90ab14ee..0ecf6cfd5 100644 --- a/app/views/competitions/competitions/common_header.json.jbuilder +++ b/app/views/competitions/competitions/common_header.json.jbuilder @@ -9,6 +9,7 @@ json.enroll_end_time @competition.enroll_end_time&.strftime("%Y-%m-%d %H:%M:%S") json.published @competition.published? json.nearly_published @competition.published_at.present? +json.competition_status @competition.competition_status json.competition_modules @competition_modules do |com_module| json.(com_module, :id, :name, :position, :module_type)