Description:
added contest.name to html title
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@281 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
r142:92da39618089 - - 2 files changed: 27 inserted, 27 deleted
@@ -4,7 +4,7 | |||||
|
4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
5 | <head> |
|
5 | <head> |
|
6 | <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> |
|
6 | <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> |
|
7 | - <title>Grader</title> |
|
7 | + <title><%= Configuration['contest.name'] %></title> |
|
8 | <%= stylesheet_link_tag 'application' %> |
|
8 | <%= stylesheet_link_tag 'application' %> |
|
9 | <%= yield :head %> |
|
9 | <%= yield :head %> |
|
10 | </head> |
|
10 | </head> |
@@ -42,12 +42,12 | |||||
|
42 |
|
42 | ||
|
43 | create_table "grader_processes", :force => true do |t| |
|
43 | create_table "grader_processes", :force => true do |t| |
|
44 | t.string "host", :limit => 20 |
|
44 | t.string "host", :limit => 20 |
|
45 |
- t.integer "pid" |
|
45 | + t.integer "pid" |
|
46 | t.string "mode" |
|
46 | t.string "mode" |
|
47 | t.boolean "active" |
|
47 | t.boolean "active" |
|
48 | t.datetime "created_at" |
|
48 | t.datetime "created_at" |
|
49 | t.datetime "updated_at" |
|
49 | t.datetime "updated_at" |
|
50 |
- t.integer "task_id" |
|
50 | + t.integer "task_id" |
|
51 | t.string "task_type" |
|
51 | t.string "task_type" |
|
52 | end |
|
52 | end |
|
53 |
|
53 | ||
@@ -60,9 +60,9 | |||||
|
60 | end |
|
60 | end |
|
61 |
|
61 | ||
|
62 | create_table "messages", :force => true do |t| |
|
62 | create_table "messages", :force => true do |t| |
|
63 |
- t.integer "sender_id" |
|
63 | + t.integer "sender_id" |
|
64 |
- t.integer "receiver_id" |
|
64 | + t.integer "receiver_id" |
|
65 |
- t.integer "replying_message_id" |
|
65 | + t.integer "replying_message_id" |
|
66 | t.text "body" |
|
66 | t.text "body" |
|
67 | t.boolean "replied" |
|
67 | t.boolean "replied" |
|
68 | t.datetime "created_at" |
|
68 | t.datetime "created_at" |
@@ -72,11 +72,11 | |||||
|
72 | create_table "problems", :force => true do |t| |
|
72 | create_table "problems", :force => true do |t| |
|
73 | t.string "name", :limit => 30 |
|
73 | t.string "name", :limit => 30 |
|
74 | t.string "full_name" |
|
74 | t.string "full_name" |
|
75 |
- t.integer "full_score" |
|
75 | + t.integer "full_score" |
|
76 | t.date "date_added" |
|
76 | t.date "date_added" |
|
77 | t.boolean "available" |
|
77 | t.boolean "available" |
|
78 | t.string "url" |
|
78 | t.string "url" |
|
79 |
- t.integer "description_id" |
|
79 | + t.integer "description_id" |
|
80 | t.boolean "test_allowed" |
|
80 | t.boolean "test_allowed" |
|
81 | t.boolean "output_only" |
|
81 | t.boolean "output_only" |
|
82 | end |
|
82 | end |
@@ -88,8 +88,8 | |||||
|
88 | end |
|
88 | end |
|
89 |
|
89 | ||
|
90 | create_table "rights_roles", :id => false, :force => true do |t| |
|
90 | create_table "rights_roles", :id => false, :force => true do |t| |
|
91 |
- t.integer "right_id" |
|
91 | + t.integer "right_id" |
|
92 |
- t.integer "role_id" |
|
92 | + t.integer "role_id" |
|
93 | end |
|
93 | end |
|
94 |
|
94 | ||
|
95 | add_index "rights_roles", ["role_id"], :name => "index_rights_roles_on_role_id" |
|
95 | add_index "rights_roles", ["role_id"], :name => "index_rights_roles_on_role_id" |
@@ -99,8 +99,8 | |||||
|
99 | end |
|
99 | end |
|
100 |
|
100 | ||
|
101 | create_table "roles_users", :id => false, :force => true do |t| |
|
101 | create_table "roles_users", :id => false, :force => true do |t| |
|
102 |
- t.integer "role_id" |
|
102 | + t.integer "role_id" |
|
103 |
- t.integer "user_id" |
|
103 | + t.integer "user_id" |
|
104 | end |
|
104 | end |
|
105 |
|
105 | ||
|
106 | add_index "roles_users", ["user_id"], :name => "index_roles_users_on_user_id" |
|
106 | add_index "roles_users", ["user_id"], :name => "index_roles_users_on_user_id" |
@@ -120,23 +120,23 | |||||
|
120 | t.datetime "start_time" |
|
120 | t.datetime "start_time" |
|
121 | t.datetime "created_at" |
|
121 | t.datetime "created_at" |
|
122 | t.datetime "updated_at" |
|
122 | t.datetime "updated_at" |
|
123 |
- t.integer "country_id" |
|
123 | + t.integer "country_id" |
|
124 | t.string "password" |
|
124 | t.string "password" |
|
125 | end |
|
125 | end |
|
126 |
|
126 | ||
|
127 | create_table "submissions", :force => true do |t| |
|
127 | create_table "submissions", :force => true do |t| |
|
128 |
- t.integer "user_id" |
|
128 | + t.integer "user_id" |
|
129 |
- t.integer "problem_id" |
|
129 | + t.integer "problem_id" |
|
130 |
- t.integer "language_id" |
|
130 | + t.integer "language_id" |
|
131 | t.text "source" |
|
131 | t.text "source" |
|
132 | t.binary "binary" |
|
132 | t.binary "binary" |
|
133 | t.datetime "submitted_at" |
|
133 | t.datetime "submitted_at" |
|
134 | t.datetime "compiled_at" |
|
134 | t.datetime "compiled_at" |
|
135 | t.text "compiler_message" |
|
135 | t.text "compiler_message" |
|
136 | t.datetime "graded_at" |
|
136 | t.datetime "graded_at" |
|
137 |
- t.integer "points" |
|
137 | + t.integer "points" |
|
138 | t.text "grader_comment" |
|
138 | t.text "grader_comment" |
|
139 |
- t.integer "number" |
|
139 | + t.integer "number" |
|
140 | t.string "source_filename" |
|
140 | t.string "source_filename" |
|
141 | end |
|
141 | end |
|
142 |
|
142 | ||
@@ -144,20 +144,20 | |||||
|
144 | add_index "submissions", ["user_id", "problem_id"], :name => "index_submissions_on_user_id_and_problem_id" |
|
144 | add_index "submissions", ["user_id", "problem_id"], :name => "index_submissions_on_user_id_and_problem_id" |
|
145 |
|
145 | ||
|
146 | create_table "tasks", :force => true do |t| |
|
146 | create_table "tasks", :force => true do |t| |
|
147 |
- t.integer "submission_id" |
|
147 | + t.integer "submission_id" |
|
148 | t.datetime "created_at" |
|
148 | t.datetime "created_at" |
|
149 |
- t.integer "status" |
|
149 | + t.integer "status" |
|
150 | t.datetime "updated_at" |
|
150 | t.datetime "updated_at" |
|
151 | end |
|
151 | end |
|
152 |
|
152 | ||
|
153 | create_table "test_requests", :force => true do |t| |
|
153 | create_table "test_requests", :force => true do |t| |
|
154 |
- t.integer "user_id" |
|
154 | + t.integer "user_id" |
|
155 |
- t.integer "problem_id" |
|
155 | + t.integer "problem_id" |
|
156 |
- t.integer "submission_id" |
|
156 | + t.integer "submission_id" |
|
157 | t.string "input_file_name" |
|
157 | t.string "input_file_name" |
|
158 | t.string "output_file_name" |
|
158 | t.string "output_file_name" |
|
159 | t.string "running_stat" |
|
159 | t.string "running_stat" |
|
160 |
- t.integer "status" |
|
160 | + t.integer "status" |
|
161 | t.datetime "updated_at" |
|
161 | t.datetime "updated_at" |
|
162 | t.datetime "submitted_at" |
|
162 | t.datetime "submitted_at" |
|
163 | t.datetime "compiled_at" |
|
163 | t.datetime "compiled_at" |
@@ -167,7 +167,7 | |||||
|
167 | t.datetime "created_at" |
|
167 | t.datetime "created_at" |
|
168 | t.float "running_time" |
|
168 | t.float "running_time" |
|
169 | t.string "exit_status" |
|
169 | t.string "exit_status" |
|
170 |
- t.integer "memory_usage" |
|
170 | + t.integer "memory_usage" |
|
171 | end |
|
171 | end |
|
172 |
|
172 | ||
|
173 | add_index "test_requests", ["user_id", "problem_id"], :name => "index_test_requests_on_user_id_and_problem_id" |
|
173 | add_index "test_requests", ["user_id", "problem_id"], :name => "index_test_requests_on_user_id_and_problem_id" |
@@ -179,8 +179,8 | |||||
|
179 | t.string "salt", :limit => 5 |
|
179 | t.string "salt", :limit => 5 |
|
180 | t.string "alias" |
|
180 | t.string "alias" |
|
181 | t.string "email" |
|
181 | t.string "email" |
|
182 |
- t.integer "site_id" |
|
182 | + t.integer "site_id" |
|
183 |
- t.integer "country_id" |
|
183 | + t.integer "country_id" |
|
184 | end |
|
184 | end |
|
185 |
|
185 | ||
|
186 | add_index "users", ["login"], :name => "index_users_on_login", :unique => true |
|
186 | add_index "users", ["login"], :name => "index_users_on_login", :unique => true |
You need to be logged in to leave comments.
Login now