|
|
|
@ -217,11 +217,11 @@ class AdminController < ApplicationController
|
|
|
|
|
if request.get?
|
|
|
|
|
@contest_page = FirstPage.where("page_type = 'contest'").first
|
|
|
|
|
@first_page = FirstPage.where("page_type = 'project'").first
|
|
|
|
|
@notification = ContestNotification.all.first;
|
|
|
|
|
@notification = ContestNotification.first;
|
|
|
|
|
elsif request.post?
|
|
|
|
|
@first_page = FirstPage.where("page_type = 'project'").first
|
|
|
|
|
@contest_page = FirstPage.where("page_type = 'contest'").first
|
|
|
|
|
@notification = ContestNotification.all.first;
|
|
|
|
|
@notification = ContestNotification.first;
|
|
|
|
|
@first_page.web_title = params[:web_title]
|
|
|
|
|
@contest_page.web_title = params[:web_title]
|
|
|
|
|
@contest_page.title = params[:contest_title]
|
|
|
|
@ -254,13 +254,13 @@ class AdminController < ApplicationController
|
|
|
|
|
|
|
|
|
|
def web_footer_made
|
|
|
|
|
if request.get?
|
|
|
|
|
@organizer = WebFooterOranizer.all.first
|
|
|
|
|
@organizer = WebFooterOranizer.first
|
|
|
|
|
@first_page = FirstPage.where("page_type = 'project'").first
|
|
|
|
|
#@notification = ContestNotification.all.first;
|
|
|
|
|
elsif request.post?
|
|
|
|
|
@first_page = FirstPage.where("page_type = 'project'").first
|
|
|
|
|
@first_page.web_title = params[:web_title]
|
|
|
|
|
@organizer = WebFooterOranizer.all.first
|
|
|
|
|
@organizer = WebFooterOranizer.first
|
|
|
|
|
if @organizer.nil?
|
|
|
|
|
@organizer = WebFooterOranizer.new
|
|
|
|
|
end
|
|
|
|
|