Description:
asset pipelining for controller specific asset
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r576:27e6704d5f53 - - 35 files changed: 39 inserted, 30 deleted
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
new file 100644 |
@@ -0,0 +1,3 | |||
|
1 | + class ActiveRecord::ConnectionAdapters::Mysql2Adapter | |
|
2 | + NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY" | |
|
3 | + end |
@@ -1,12 +1,12 | |||
|
1 | 1 | /************* |
|
2 | 2 | Metro Dark Theme |
|
3 | 3 | *************/ |
|
4 | 4 | /* overall */ |
|
5 | 5 | .tablesorter-cafe { |
|
6 |
- / |
|
|
6 | + /* font: 12px/18px 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif; */ | |
|
7 | 7 | color: #000; |
|
8 | 8 | background-color: #777; |
|
9 | 9 | margin: 10px 0 15px; |
|
10 | 10 | text-align: left; |
|
11 | 11 | border-collapse: collapse; |
|
12 | 12 | border: #555 1px solid; |
@@ -22,14 +22,16 | |||
|
22 | 22 | /* header/footer */ |
|
23 | 23 | .tablesorter-cafe caption, |
|
24 | 24 | .tablesorter-cafe th, |
|
25 | 25 | .tablesorter-cafe thead td, |
|
26 | 26 | .tablesorter-cafe tfoot th, |
|
27 | 27 | .tablesorter-cafe tfoot td { |
|
28 | + /* | |
|
28 | 29 | //font-weight: 300; |
|
29 | 30 | //font-size: 15px; |
|
31 | + */ | |
|
30 | 32 | color: #fff; |
|
31 | 33 | background-color: #777; |
|
32 | 34 | padding: 2px; |
|
33 | 35 | border: #555 1px solid; |
|
34 | 36 | } |
|
35 | 37 |
@@ -1,11 +1,11 | |||
|
1 | 1 | |
|
2 | 2 | %td= grader.host |
|
3 | 3 | %td= grader.pid |
|
4 | 4 | %td= grader.mode |
|
5 |
- %td= grader.updated_at.strftime("%H:%M:%S") |
|
|
5 | + %td= grader.updated_at.strftime("%H:%M:%S") unless grader.updated_at.nil? | |
|
6 | 6 | %td= grader.task_type |
|
7 | 7 | %td |
|
8 |
- - if grader.task_id |
|
|
8 | + - if grader.task_id.nil? | |
|
9 | 9 | idle |
|
10 | 10 | - else |
|
11 | 11 | = link_to "#{grader.task_id}", :action => 'view', :id => grader.task_id, :type => grader.task_type |
@@ -56,10 +56,15 | |||
|
56 | 56 | # Enable the asset pipeline |
|
57 | 57 | config.assets.enabled = true |
|
58 | 58 | |
|
59 | 59 | # Version of your assets, change this if you want to expire all your assets |
|
60 | 60 | config.assets.version = '1.0' |
|
61 | 61 | |
|
62 |
- config.assets.precompile += ['announcement_refresh.js','effects.js','site_update.js' |
|
|
62 | + config.assets.precompile += ['announcement_refresh.js','effects.js','site_update.js'] | |
|
63 | 63 | config.assets.precompile += ['local_jquery.js','tablesorter-theme.cafe.css'] |
|
64 | + %w( announcements configurations contests contest_management graders heartbeat | |
|
65 | + login main messages problems report site sites sources tasks | |
|
66 | + test user_admin users ).each do |controller| | |
|
67 | + config.assets.precompile += ["#{controller}.js", "#{controller}.css"] | |
|
68 | + end | |
|
64 | 69 | end |
|
65 | 70 | end |
@@ -12,18 +12,18 | |||
|
12 | 12 | # It's strongly recommended to check this file into your version control system. |
|
13 | 13 | |
|
14 | 14 | ActiveRecord::Schema.define(:version => 20150916054105) do |
|
15 | 15 | |
|
16 | 16 | create_table "announcements", :force => true do |t| |
|
17 | 17 | t.string "author" |
|
18 |
- t.text "body" |
|
|
18 | + t.text "body" | |
|
19 | 19 | t.boolean "published" |
|
20 |
- t.datetime "created_at", |
|
|
21 |
- t.datetime "updated_at", |
|
|
22 |
- t.boolean "frontpage", |
|
|
23 |
- t.boolean "contest_only", |
|
|
20 | + t.datetime "created_at", :null => false | |
|
21 | + t.datetime "updated_at", :null => false | |
|
22 | + t.boolean "frontpage", :default => false | |
|
23 | + t.boolean "contest_only", :default => false | |
|
24 | 24 | t.string "title" |
|
25 | 25 | t.string "notes" |
|
26 | 26 | end |
|
27 | 27 | |
|
28 | 28 | create_table "contests", :force => true do |t| |
|
29 | 29 | t.string "title" |
@@ -47,25 +47,25 | |||
|
47 | 47 | t.string "name" |
|
48 | 48 | t.datetime "created_at", :null => false |
|
49 | 49 | t.datetime "updated_at", :null => false |
|
50 | 50 | end |
|
51 | 51 | |
|
52 | 52 | create_table "descriptions", :force => true do |t| |
|
53 |
- t.text "body" |
|
|
53 | + t.text "body" | |
|
54 | 54 | t.boolean "markdowned" |
|
55 |
- t.datetime "created_at", |
|
|
56 |
- t.datetime "updated_at", |
|
|
55 | + t.datetime "created_at", :null => false | |
|
56 | + t.datetime "updated_at", :null => false | |
|
57 | 57 | end |
|
58 | 58 | |
|
59 | 59 | create_table "grader_configurations", :force => true do |t| |
|
60 | 60 | t.string "key" |
|
61 | 61 | t.string "value_type" |
|
62 | 62 | t.string "value" |
|
63 |
- t.datetime "created_at", |
|
|
64 |
- t.datetime "updated_at", |
|
|
65 |
- t.text "description" |
|
|
63 | + t.datetime "created_at", :null => false | |
|
64 | + t.datetime "updated_at", :null => false | |
|
65 | + t.text "description" | |
|
66 | 66 | end |
|
67 | 67 | |
|
68 | 68 | create_table "grader_processes", :force => true do |t| |
|
69 | 69 | t.string "host", :limit => 20 |
|
70 | 70 | t.integer "pid" |
|
71 | 71 | t.string "mode" |
@@ -104,16 +104,16 | |||
|
104 | 104 | end |
|
105 | 105 | |
|
106 | 106 | create_table "messages", :force => true do |t| |
|
107 | 107 | t.integer "sender_id" |
|
108 | 108 | t.integer "receiver_id" |
|
109 | 109 | t.integer "replying_message_id" |
|
110 | - t.text "body", :limit => 16777215 | |
|
110 | + t.text "body" | |
|
111 | 111 | t.boolean "replied" |
|
112 |
- t.datetime "created_at", |
|
|
113 |
- t.datetime "updated_at", |
|
|
112 | + t.datetime "created_at", :null => false | |
|
113 | + t.datetime "updated_at", :null => false | |
|
114 | 114 | end |
|
115 | 115 | |
|
116 | 116 | create_table "problems", :force => true do |t| |
|
117 | 117 | t.string "name", :limit => 30 |
|
118 | 118 | t.string "full_name" |
|
119 | 119 | t.integer "full_score" |
@@ -149,13 +149,13 | |||
|
149 | 149 | end |
|
150 | 150 | |
|
151 | 151 | add_index "roles_users", ["user_id"], :name => "index_roles_users_on_user_id" |
|
152 | 152 | |
|
153 | 153 | create_table "sessions", :force => true do |t| |
|
154 | 154 | t.string "session_id" |
|
155 |
- t.text "data" |
|
|
155 | + t.text "data" | |
|
156 | 156 | t.datetime "updated_at" |
|
157 | 157 | end |
|
158 | 158 | |
|
159 | 159 | add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id" |
|
160 | 160 | add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at" |
|
161 | 161 | |
@@ -177,20 +177,20 | |||
|
177 | 177 | end |
|
178 | 178 | |
|
179 | 179 | create_table "submissions", :force => true do |t| |
|
180 | 180 | t.integer "user_id" |
|
181 | 181 | t.integer "problem_id" |
|
182 | 182 | t.integer "language_id" |
|
183 | - t.text "source", :limit => 16777215 | |
|
183 | + t.text "source" | |
|
184 | 184 | t.binary "binary" |
|
185 | 185 | t.datetime "submitted_at" |
|
186 | 186 | t.datetime "compiled_at" |
|
187 |
- t.text "compiler_message" |
|
|
187 | + t.text "compiler_message" | |
|
188 | 188 | t.datetime "graded_at" |
|
189 | 189 | t.integer "points" |
|
190 |
- t.text "grader_comment" |
|
|
190 | + t.text "grader_comment" | |
|
191 | 191 | t.integer "number" |
|
192 | 192 | t.string "source_filename" |
|
193 | 193 | t.float "max_runtime" |
|
194 | 194 | t.integer "peak_memory" |
|
195 | 195 | t.integer "effective_code_length" |
|
196 | 196 | t.string "ip_address" |
@@ -205,33 +205,33 | |||
|
205 | 205 | t.integer "status" |
|
206 | 206 | t.datetime "updated_at" |
|
207 | 207 | end |
|
208 | 208 | |
|
209 | 209 | create_table "test_pairs", :force => true do |t| |
|
210 | 210 | t.integer "problem_id" |
|
211 |
- t.text "input", :limit => |
|
|
212 |
- t.text "solution", :limit => |
|
|
213 |
- t.datetime "created_at", |
|
|
214 |
- t.datetime "updated_at", |
|
|
211 | + t.text "input", :limit => 16777215 | |
|
212 | + t.text "solution", :limit => 16777215 | |
|
213 | + t.datetime "created_at", :null => false | |
|
214 | + t.datetime "updated_at", :null => false | |
|
215 | 215 | end |
|
216 | 216 | |
|
217 | 217 | create_table "test_requests", :force => true do |t| |
|
218 | 218 | t.integer "user_id" |
|
219 | 219 | t.integer "problem_id" |
|
220 | 220 | t.integer "submission_id" |
|
221 | 221 | t.string "input_file_name" |
|
222 | 222 | t.string "output_file_name" |
|
223 | 223 | t.string "running_stat" |
|
224 | 224 | t.integer "status" |
|
225 |
- t.datetime "updated_at", |
|
|
225 | + t.datetime "updated_at", :null => false | |
|
226 | 226 | t.datetime "submitted_at" |
|
227 | 227 | t.datetime "compiled_at" |
|
228 |
- t.text "compiler_message" |
|
|
228 | + t.text "compiler_message" | |
|
229 | 229 | t.datetime "graded_at" |
|
230 | 230 | t.string "grader_comment" |
|
231 |
- t.datetime "created_at", |
|
|
231 | + t.datetime "created_at", :null => false | |
|
232 | 232 | t.float "running_time" |
|
233 | 233 | t.string "exit_status" |
|
234 | 234 | t.integer "memory_usage" |
|
235 | 235 | end |
|
236 | 236 | |
|
237 | 237 | add_index "test_requests", ["user_id", "problem_id"], :name => "index_test_requests_on_user_id_and_problem_id" |
@@ -253,13 +253,12 | |||
|
253 | 253 | t.string "email" |
|
254 | 254 | t.integer "site_id" |
|
255 | 255 | t.integer "country_id" |
|
256 | 256 | t.boolean "activated", :default => false |
|
257 | 257 | t.datetime "created_at" |
|
258 | 258 | t.datetime "updated_at" |
|
259 | - t.string "section" | |
|
260 | 259 | t.boolean "enabled", :default => true |
|
261 | 260 | t.string "remark" |
|
262 | 261 | t.string "last_ip" |
|
263 | 262 | end |
|
264 | 263 | |
|
265 | 264 | add_index "users", ["login"], :name => "index_users_on_login", :unique => true |
You need to be logged in to leave comments.
Login now