Description:
merge from java-bm, fix profile issue and modify application.rb.SAMPLE
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r436:cafc387838eb - - 4 files changed: 20 inserted, 15 deleted
@@ -13,6 +13,7 | |||
|
13 | 13 | </tr> |
|
14 | 14 | <% count = 0 %> |
|
15 | 15 | <% @submissions.each do |sub| %> |
|
16 | + <% next unless sub.user %> | |
|
16 | 17 | <tr class="<%= (count % 2 ==0) ? "info-even" : "info-odd" %>"> |
|
17 | 18 | <td><%= sub.user.login %></td> |
|
18 | 19 | <td><%= sub.user.full_name if sub.user %></td> |
@@ -6,6 +6,11 | |||
|
6 | 6 | $('#submission_table').tablesorter({widgets: ['zebra','filter']}); |
|
7 | 7 | }); |
|
8 | 8 | |
|
9 | + :css | |
|
10 | + .fix-width { | |
|
11 | + font-family: Droid Sans Mono,Consolas, monospace, mono, Courier New, Courier; | |
|
12 | + } | |
|
13 | + | |
|
9 | 14 | %h1= @user.full_name + ' Profile' |
|
10 | 15 | |
|
11 | 16 | %h2 Basic info |
@@ -28,12 +33,13 | |||
|
28 | 33 | %th Score |
|
29 | 34 | %tbody |
|
30 | 35 | - @submission.each do |s| |
|
36 | + - next unless s.problem | |
|
31 | 37 | %tr |
|
32 | 38 | %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id |
|
33 | 39 | %td= s.problem.name |
|
34 | 40 | %td= s.problem.full_name |
|
35 | 41 | %td= s.language.pretty_name |
|
36 | - %td{style: 'font-family: Droid Sans Mono,Consolas, monospace, mono'}= s.grader_comment | |
|
42 | + %td.fix-width= s.grader_comment | |
|
37 | 43 | %td= s.points/s.problem.full_score * 100 |
|
38 | 44 | |
|
39 | 45 |
@@ -60,5 +60,6 | |||
|
60 | 60 | config.assets.version = '1.0' |
|
61 | 61 | |
|
62 | 62 | config.assets.precompile += ['announcement_refresh.js','effects.js','site_update.js','graders.css','problems.css'] |
|
63 | + config.assets.precompile += ['new.js','tablesorter-theme.cafe.css'] | |
|
63 | 64 | end |
|
64 | 65 | end |
@@ -15,7 +15,7 | |||
|
15 | 15 | |
|
16 | 16 | create_table "announcements", :force => true do |t| |
|
17 | 17 | t.string "author" |
|
18 | - t.text "body" | |
|
18 | + t.text "body", :limit => 16777215 | |
|
19 | 19 | t.boolean "published" |
|
20 | 20 | t.datetime "created_at", :null => false |
|
21 | 21 | t.datetime "updated_at", :null => false |
@@ -50,7 +50,7 | |||
|
50 | 50 | end |
|
51 | 51 | |
|
52 | 52 | create_table "descriptions", :force => true do |t| |
|
53 | - t.text "body" | |
|
53 | + t.text "body", :limit => 16777215 | |
|
54 | 54 | t.boolean "markdowned" |
|
55 | 55 | t.datetime "created_at", :null => false |
|
56 | 56 | t.datetime "updated_at", :null => false |
@@ -62,7 +62,7 | |||
|
62 | 62 | t.string "value" |
|
63 | 63 | t.datetime "created_at", :null => false |
|
64 | 64 | t.datetime "updated_at", :null => false |
|
65 | - t.text "description" | |
|
65 | + t.text "description", :limit => 16777215 | |
|
66 | 66 | end |
|
67 | 67 | |
|
68 | 68 | create_table "grader_processes", :force => true do |t| |
@@ -97,7 +97,7 | |||
|
97 | 97 | t.integer "sender_id" |
|
98 | 98 | t.integer "receiver_id" |
|
99 | 99 | t.integer "replying_message_id" |
|
100 | - t.text "body" | |
|
100 | + t.text "body", :limit => 16777215 | |
|
101 | 101 | t.boolean "replied" |
|
102 | 102 | t.datetime "created_at", :null => false |
|
103 | 103 | t.datetime "updated_at", :null => false |
@@ -142,7 +142,7 | |||
|
142 | 142 | |
|
143 | 143 | create_table "sessions", :force => true do |t| |
|
144 | 144 | t.string "session_id" |
|
145 | - t.text "data" | |
|
145 | + t.text "data", :limit => 16777215 | |
|
146 | 146 | t.datetime "updated_at" |
|
147 | 147 | end |
|
148 | 148 | |
@@ -163,19 +163,16 | |||
|
163 | 163 | t.integer "user_id" |
|
164 | 164 | t.integer "problem_id" |
|
165 | 165 | t.integer "language_id" |
|
166 | - t.text "source" | |
|
166 | + t.text "source", :limit => 16777215 | |
|
167 | 167 | t.binary "binary" |
|
168 | 168 | t.datetime "submitted_at" |
|
169 | 169 | t.datetime "compiled_at" |
|
170 | - t.text "compiler_message" | |
|
170 | + t.text "compiler_message", :limit => 16777215 | |
|
171 | 171 | t.datetime "graded_at" |
|
172 | 172 | t.integer "points" |
|
173 | - t.text "grader_comment" | |
|
173 | + t.text "grader_comment", :limit => 16777215 | |
|
174 | 174 | t.integer "number" |
|
175 | 175 | t.string "source_filename" |
|
176 | - t.float "max_runtime" | |
|
177 | - t.integer "peak_memory" | |
|
178 | - t.integer "effective_code_length" | |
|
179 | 176 | end |
|
180 | 177 | |
|
181 | 178 | add_index "submissions", ["user_id", "problem_id", "number"], :name => "index_submissions_on_user_id_and_problem_id_and_number", :unique => true |
@@ -190,8 +187,8 | |||
|
190 | 187 | |
|
191 | 188 | create_table "test_pairs", :force => true do |t| |
|
192 | 189 | t.integer "problem_id" |
|
193 |
- t.text "input", :limit => |
|
|
194 |
- t.text "solution", :limit => |
|
|
190 | + t.text "input", :limit => 2147483647 | |
|
191 | + t.text "solution", :limit => 2147483647 | |
|
195 | 192 | t.datetime "created_at", :null => false |
|
196 | 193 | t.datetime "updated_at", :null => false |
|
197 | 194 | end |
@@ -207,7 +204,7 | |||
|
207 | 204 | t.datetime "updated_at", :null => false |
|
208 | 205 | t.datetime "submitted_at" |
|
209 | 206 | t.datetime "compiled_at" |
|
210 | - t.text "compiler_message" | |
|
207 | + t.text "compiler_message", :limit => 16777215 | |
|
211 | 208 | t.datetime "graded_at" |
|
212 | 209 | t.string "grader_comment" |
|
213 | 210 | t.datetime "created_at", :null => false |
You need to be logged in to leave comments.
Login now