diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -102,6 +102,10 @@ end end + def error + @user = User.find(session[:user_id]) + end + protected def prepare_list_information @problems = Problem.find_available_problems diff --git a/app/views/main/error.html.haml b/app/views/main/error.html.haml new file mode 100644 --- /dev/null +++ b/app/views/main/error.html.haml @@ -0,0 +1,7 @@ += user_title_bar(@user) + +.announcementbox + %span{:class => 'title'} + Error + .announcement + You are uploading a file which is too large (> 2MB).