Description:
[web] added error page for uploading too large file
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@228 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r109:da88b4336501 - - 2 files changed: 11 inserted, 0 deleted
@@ -0,0 +1,7 | |||||
|
|
1 | + = user_title_bar(@user) | ||
|
|
2 | + | ||
|
|
3 | + .announcementbox | ||
|
|
4 | + %span{:class => 'title'} | ||
|
|
5 | + Error | ||
|
|
6 | + .announcement | ||
|
|
7 | + You are uploading a file which is too large (> 2MB). |
@@ -102,6 +102,10 | |||||
|
102 | end |
|
102 | end |
|
103 | end |
|
103 | end |
|
104 |
|
104 | ||
|
|
105 | + def error | ||
|
|
106 | + @user = User.find(session[:user_id]) | ||
|
|
107 | + end | ||
|
|
108 | + | ||
|
105 | protected |
|
109 | protected |
|
106 | def prepare_list_information |
|
110 | def prepare_list_information |
|
107 | @problems = Problem.find_available_problems |
|
111 | @problems = Problem.find_available_problems |
You need to be logged in to leave comments.
Login now