Description:
assigns users to a unique contest, small styling on contest title
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r281:ddf493b045db - - 4 files changed: 37 inserted, 27 deleted
@@ -1,322 +1,324 | |||||
|
1 | class UserAdminController < ApplicationController |
|
1 | class UserAdminController < ApplicationController |
|
2 |
|
2 | ||
|
3 | before_filter :admin_authorization |
|
3 | before_filter :admin_authorization |
|
4 |
|
4 | ||
|
5 | def index |
|
5 | def index |
|
6 | list |
|
6 | list |
|
7 | render :action => 'list' |
|
7 | render :action => 'list' |
|
8 | end |
|
8 | end |
|
9 |
|
9 | ||
|
10 | # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html) |
|
10 | # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html) |
|
11 | verify :method => :post, :only => [ :destroy, |
|
11 | verify :method => :post, :only => [ :destroy, |
|
12 | :create, :create_from_list, |
|
12 | :create, :create_from_list, |
|
13 | :update ], |
|
13 | :update ], |
|
14 | :redirect_to => { :action => :list } |
|
14 | :redirect_to => { :action => :list } |
|
15 |
|
15 | ||
|
16 | def list |
|
16 | def list |
|
17 | @users = User.find(:all) |
|
17 | @users = User.find(:all) |
|
18 | @hidden_columns = ['hashed_password', 'salt', 'created_at', 'updated_at'] |
|
18 | @hidden_columns = ['hashed_password', 'salt', 'created_at', 'updated_at'] |
|
19 | @contests = Contest.all(:conditions => {:enabled => true}) |
|
19 | @contests = Contest.all(:conditions => {:enabled => true}) |
|
20 | end |
|
20 | end |
|
21 |
|
21 | ||
|
22 | def active |
|
22 | def active |
|
23 | sessions = ActiveRecord::SessionStore::Session.find(:all, :conditions => ["updated_at >= ?", 60.minutes.ago]) |
|
23 | sessions = ActiveRecord::SessionStore::Session.find(:all, :conditions => ["updated_at >= ?", 60.minutes.ago]) |
|
24 | @users = [] |
|
24 | @users = [] |
|
25 | sessions.each do |session| |
|
25 | sessions.each do |session| |
|
26 | if session.data[:user_id] |
|
26 | if session.data[:user_id] |
|
27 | @users << User.find(session.data[:user_id]) |
|
27 | @users << User.find(session.data[:user_id]) |
|
28 | end |
|
28 | end |
|
29 | end |
|
29 | end |
|
30 | end |
|
30 | end |
|
31 |
|
31 | ||
|
32 | def show |
|
32 | def show |
|
33 | @user = User.find(params[:id]) |
|
33 | @user = User.find(params[:id]) |
|
34 | end |
|
34 | end |
|
35 |
|
35 | ||
|
36 | def new |
|
36 | def new |
|
37 | @user = User.new |
|
37 | @user = User.new |
|
38 | end |
|
38 | end |
|
39 |
|
39 | ||
|
40 | def create |
|
40 | def create |
|
41 | @user = User.new(params[:user]) |
|
41 | @user = User.new(params[:user]) |
|
42 | @user.activated = true |
|
42 | @user.activated = true |
|
43 | if @user.save |
|
43 | if @user.save |
|
44 | flash[:notice] = 'User was successfully created.' |
|
44 | flash[:notice] = 'User was successfully created.' |
|
45 | redirect_to :action => 'list' |
|
45 | redirect_to :action => 'list' |
|
46 | else |
|
46 | else |
|
47 | render :action => 'new' |
|
47 | render :action => 'new' |
|
48 | end |
|
48 | end |
|
49 | end |
|
49 | end |
|
50 |
|
50 | ||
|
51 | def create_from_list |
|
51 | def create_from_list |
|
52 | lines = params[:user_list] |
|
52 | lines = params[:user_list] |
|
53 |
|
53 | ||
|
54 | note = [] |
|
54 | note = [] |
|
55 |
|
55 | ||
|
56 | lines.split("\n").each do |line| |
|
56 | lines.split("\n").each do |line| |
|
57 | items = line.chomp.split(',') |
|
57 | items = line.chomp.split(',') |
|
58 | if items.length>=2 |
|
58 | if items.length>=2 |
|
59 | login = items[0] |
|
59 | login = items[0] |
|
60 | full_name = items[1] |
|
60 | full_name = items[1] |
|
61 |
|
61 | ||
|
62 | added_random_password = false |
|
62 | added_random_password = false |
|
63 | if items.length>=3 |
|
63 | if items.length>=3 |
|
64 | password = items[2] |
|
64 | password = items[2] |
|
65 | user_alias = (items.length>=4) ? items[3] : login |
|
65 | user_alias = (items.length>=4) ? items[3] : login |
|
66 | else |
|
66 | else |
|
67 | password = random_password |
|
67 | password = random_password |
|
68 | user_alias = (items.length>=4) ? items[3] : login |
|
68 | user_alias = (items.length>=4) ? items[3] : login |
|
69 | added_random_password = true |
|
69 | added_random_password = true |
|
70 | end |
|
70 | end |
|
71 |
|
71 | ||
|
72 | user = User.new({:login => login, |
|
72 | user = User.new({:login => login, |
|
73 | :full_name => full_name, |
|
73 | :full_name => full_name, |
|
74 | :password => password, |
|
74 | :password => password, |
|
75 | :password_confirmation => password, |
|
75 | :password_confirmation => password, |
|
76 | :alias => user_alias}) |
|
76 | :alias => user_alias}) |
|
77 | user.activated = true |
|
77 | user.activated = true |
|
78 | user.save |
|
78 | user.save |
|
79 |
|
79 | ||
|
80 | if added_random_password |
|
80 | if added_random_password |
|
81 | note << "'#{login}' (+)" |
|
81 | note << "'#{login}' (+)" |
|
82 | else |
|
82 | else |
|
83 | note << login |
|
83 | note << login |
|
84 | end |
|
84 | end |
|
85 | end |
|
85 | end |
|
86 | end |
|
86 | end |
|
87 | flash[:notice] = 'User(s) ' + note.join(', ') + |
|
87 | flash[:notice] = 'User(s) ' + note.join(', ') + |
|
88 | ' were successfully created. ' + |
|
88 | ' were successfully created. ' + |
|
89 | '( (+) - created with random passwords.)' |
|
89 | '( (+) - created with random passwords.)' |
|
90 | redirect_to :action => 'list' |
|
90 | redirect_to :action => 'list' |
|
91 | end |
|
91 | end |
|
92 |
|
92 | ||
|
93 | def edit |
|
93 | def edit |
|
94 | @user = User.find(params[:id]) |
|
94 | @user = User.find(params[:id]) |
|
95 | end |
|
95 | end |
|
96 |
|
96 | ||
|
97 | def update |
|
97 | def update |
|
98 | @user = User.find(params[:id]) |
|
98 | @user = User.find(params[:id]) |
|
99 | if @user.update_attributes(params[:user]) |
|
99 | if @user.update_attributes(params[:user]) |
|
100 | flash[:notice] = 'User was successfully updated.' |
|
100 | flash[:notice] = 'User was successfully updated.' |
|
101 | redirect_to :action => 'show', :id => @user |
|
101 | redirect_to :action => 'show', :id => @user |
|
102 | else |
|
102 | else |
|
103 | render :action => 'edit' |
|
103 | render :action => 'edit' |
|
104 | end |
|
104 | end |
|
105 | end |
|
105 | end |
|
106 |
|
106 | ||
|
107 | def destroy |
|
107 | def destroy |
|
108 | User.find(params[:id]).destroy |
|
108 | User.find(params[:id]).destroy |
|
109 | redirect_to :action => 'list' |
|
109 | redirect_to :action => 'list' |
|
110 | end |
|
110 | end |
|
111 |
|
111 | ||
|
112 | def user_stat |
|
112 | def user_stat |
|
113 | @problems = Problem.find_available_problems |
|
113 | @problems = Problem.find_available_problems |
|
114 | @users = User.find(:all) |
|
114 | @users = User.find(:all) |
|
115 | @scorearray = Array.new |
|
115 | @scorearray = Array.new |
|
116 | @users.each do |u| |
|
116 | @users.each do |u| |
|
117 | ustat = Array.new |
|
117 | ustat = Array.new |
|
118 | ustat[0] = u |
|
118 | ustat[0] = u |
|
119 | @problems.each do |p| |
|
119 | @problems.each do |p| |
|
120 | sub = Submission.find_last_by_user_and_problem(u.id,p.id) |
|
120 | sub = Submission.find_last_by_user_and_problem(u.id,p.id) |
|
121 | if (sub!=nil) and (sub.points!=nil) |
|
121 | if (sub!=nil) and (sub.points!=nil) |
|
122 | ustat << [(sub.points.to_f*100/p.full_score).round, (sub.points>=p.full_score)] |
|
122 | ustat << [(sub.points.to_f*100/p.full_score).round, (sub.points>=p.full_score)] |
|
123 | else |
|
123 | else |
|
124 | ustat << [0,false] |
|
124 | ustat << [0,false] |
|
125 | end |
|
125 | end |
|
126 | end |
|
126 | end |
|
127 | @scorearray << ustat |
|
127 | @scorearray << ustat |
|
128 | end |
|
128 | end |
|
129 | end |
|
129 | end |
|
130 |
|
130 | ||
|
131 | def import |
|
131 | def import |
|
132 | if params[:file]=='' |
|
132 | if params[:file]=='' |
|
133 | flash[:notice] = 'Error importing no file' |
|
133 | flash[:notice] = 'Error importing no file' |
|
134 | redirect_to :action => 'list' and return |
|
134 | redirect_to :action => 'list' and return |
|
135 | end |
|
135 | end |
|
136 | import_from_file(params[:file]) |
|
136 | import_from_file(params[:file]) |
|
137 | end |
|
137 | end |
|
138 |
|
138 | ||
|
139 | def random_all_passwords |
|
139 | def random_all_passwords |
|
140 | users = User.find(:all) |
|
140 | users = User.find(:all) |
|
141 | @prefix = params[:prefix] || '' |
|
141 | @prefix = params[:prefix] || '' |
|
142 | @non_admin_users = User.find_non_admin_with_prefix(@prefix) |
|
142 | @non_admin_users = User.find_non_admin_with_prefix(@prefix) |
|
143 | @changed = false |
|
143 | @changed = false |
|
144 | if request.request_method == :post |
|
144 | if request.request_method == :post |
|
145 | @non_admin_users.each do |user| |
|
145 | @non_admin_users.each do |user| |
|
146 | password = random_password |
|
146 | password = random_password |
|
147 | user.password = password |
|
147 | user.password = password |
|
148 | user.password_confirmation = password |
|
148 | user.password_confirmation = password |
|
149 | user.save |
|
149 | user.save |
|
150 | end |
|
150 | end |
|
151 | @changed = true |
|
151 | @changed = true |
|
152 | end |
|
152 | end |
|
153 | end |
|
153 | end |
|
154 |
|
154 | ||
|
155 | # contest management |
|
155 | # contest management |
|
156 |
|
156 | ||
|
157 | def add_to_contest |
|
157 | def add_to_contest |
|
158 | user = User.find(params[:id]) |
|
158 | user = User.find(params[:id]) |
|
159 | contest = Contest.find(params[:contest_id]) |
|
159 | contest = Contest.find(params[:contest_id]) |
|
160 | if user and contest |
|
160 | if user and contest |
|
161 | user.contests << contest |
|
161 | user.contests << contest |
|
162 | end |
|
162 | end |
|
163 | redirect_to :action => 'list' |
|
163 | redirect_to :action => 'list' |
|
164 | end |
|
164 | end |
|
165 |
|
165 | ||
|
166 | def remove_from_contest |
|
166 | def remove_from_contest |
|
167 | user = User.find(params[:id]) |
|
167 | user = User.find(params[:id]) |
|
168 | contest = Contest.find(params[:contest_id]) |
|
168 | contest = Contest.find(params[:contest_id]) |
|
169 | if user and contest |
|
169 | if user and contest |
|
170 | user.contests.delete(contest) |
|
170 | user.contests.delete(contest) |
|
171 | end |
|
171 | end |
|
172 | redirect_to :action => 'list' |
|
172 | redirect_to :action => 'list' |
|
173 | end |
|
173 | end |
|
174 |
|
174 | ||
|
175 | def contest_management |
|
175 | def contest_management |
|
176 | end |
|
176 | end |
|
177 |
|
177 | ||
|
178 | def manage_contest |
|
178 | def manage_contest |
|
179 | contest = Contest.find(params[:contest][:id]) |
|
179 | contest = Contest.find(params[:contest][:id]) |
|
180 | if !contest |
|
180 | if !contest |
|
181 | flash[:notice] = 'You did not choose the contest.' |
|
181 | flash[:notice] = 'You did not choose the contest.' |
|
182 | redirect_to :action => 'contest_management' and return |
|
182 | redirect_to :action => 'contest_management' and return |
|
183 | end |
|
183 | end |
|
184 |
|
184 | ||
|
185 | operation = params[:operation] |
|
185 | operation = params[:operation] |
|
186 |
|
186 | ||
|
187 | - if operation!='add' and operation!='remove' |
|
187 | + if not ['add','remove','assign'].include? operation |
|
188 | flash[:notice] = 'You did not choose the operation to perform.' |
|
188 | flash[:notice] = 'You did not choose the operation to perform.' |
|
189 | redirect_to :action => 'contest_management' and return |
|
189 | redirect_to :action => 'contest_management' and return |
|
190 | end |
|
190 | end |
|
191 |
|
191 | ||
|
192 | lines = params[:login_list] |
|
192 | lines = params[:login_list] |
|
193 | if !lines or lines.blank? |
|
193 | if !lines or lines.blank? |
|
194 | flash[:notice] = 'You entered an empty list.' |
|
194 | flash[:notice] = 'You entered an empty list.' |
|
195 | redirect_to :action => 'contest_management' and return |
|
195 | redirect_to :action => 'contest_management' and return |
|
196 | end |
|
196 | end |
|
197 |
|
197 | ||
|
198 | note = [] |
|
198 | note = [] |
|
199 | lines.split("\n").each do |line| |
|
199 | lines.split("\n").each do |line| |
|
200 | puts line |
|
200 | puts line |
|
201 | user = User.find_by_login(line.chomp) |
|
201 | user = User.find_by_login(line.chomp) |
|
202 | puts user |
|
202 | puts user |
|
203 | if user |
|
203 | if user |
|
204 | if operation=='add' |
|
204 | if operation=='add' |
|
205 | user.contests << contest |
|
205 | user.contests << contest |
|
|
206 | + elsif operation=='remove' | ||
|
|
207 | + user.contests.delete(contest) | ||
|
206 | else |
|
208 | else |
|
207 |
- user.contests |
|
209 | + user.contests = [contest] |
|
208 | end |
|
210 | end |
|
209 | note << user.login |
|
211 | note << user.login |
|
210 | end |
|
212 | end |
|
211 | end |
|
213 | end |
|
212 | flash[:notice] = 'User(s) ' + note.join(', ') + |
|
214 | flash[:notice] = 'User(s) ' + note.join(', ') + |
|
213 | ' were successfully modified. ' |
|
215 | ' were successfully modified. ' |
|
214 | redirect_to :action => 'contest_management' |
|
216 | redirect_to :action => 'contest_management' |
|
215 | end |
|
217 | end |
|
216 |
|
218 | ||
|
217 | # admin management |
|
219 | # admin management |
|
218 |
|
220 | ||
|
219 | def admin |
|
221 | def admin |
|
220 | @admins = User.find(:all).find_all {|user| user.admin? } |
|
222 | @admins = User.find(:all).find_all {|user| user.admin? } |
|
221 | end |
|
223 | end |
|
222 |
|
224 | ||
|
223 | def grant_admin |
|
225 | def grant_admin |
|
224 | login = params[:login] |
|
226 | login = params[:login] |
|
225 | user = User.find_by_login(login) |
|
227 | user = User.find_by_login(login) |
|
226 | if user!=nil |
|
228 | if user!=nil |
|
227 | admin_role = Role.find_by_name('admin') |
|
229 | admin_role = Role.find_by_name('admin') |
|
228 | user.roles << admin_role |
|
230 | user.roles << admin_role |
|
229 | else |
|
231 | else |
|
230 | flash[:notice] = 'Unknown user' |
|
232 | flash[:notice] = 'Unknown user' |
|
231 | end |
|
233 | end |
|
232 | flash[:notice] = 'User added as admins' |
|
234 | flash[:notice] = 'User added as admins' |
|
233 | redirect_to :action => 'admin' |
|
235 | redirect_to :action => 'admin' |
|
234 | end |
|
236 | end |
|
235 |
|
237 | ||
|
236 | def revoke_admin |
|
238 | def revoke_admin |
|
237 | user = User.find(params[:id]) |
|
239 | user = User.find(params[:id]) |
|
238 | if user==nil |
|
240 | if user==nil |
|
239 | flash[:notice] = 'Unknown user' |
|
241 | flash[:notice] = 'Unknown user' |
|
240 | redirect_to :action => 'admin' and return |
|
242 | redirect_to :action => 'admin' and return |
|
241 | elsif user.login == 'root' |
|
243 | elsif user.login == 'root' |
|
242 | flash[:notice] = 'You cannot revoke admisnistrator permission from root.' |
|
244 | flash[:notice] = 'You cannot revoke admisnistrator permission from root.' |
|
243 | redirect_to :action => 'admin' and return |
|
245 | redirect_to :action => 'admin' and return |
|
244 | end |
|
246 | end |
|
245 |
|
247 | ||
|
246 | admin_role = Role.find_by_name('admin') |
|
248 | admin_role = Role.find_by_name('admin') |
|
247 | user.roles.delete(admin_role) |
|
249 | user.roles.delete(admin_role) |
|
248 | flash[:notice] = 'User permission revoked' |
|
250 | flash[:notice] = 'User permission revoked' |
|
249 | redirect_to :action => 'admin' |
|
251 | redirect_to :action => 'admin' |
|
250 | end |
|
252 | end |
|
251 |
|
253 | ||
|
252 | protected |
|
254 | protected |
|
253 |
|
255 | ||
|
254 | def random_password(length=5) |
|
256 | def random_password(length=5) |
|
255 | chars = 'abcdefghijkmnopqrstuvwxyz23456789' |
|
257 | chars = 'abcdefghijkmnopqrstuvwxyz23456789' |
|
256 | newpass = "" |
|
258 | newpass = "" |
|
257 | length.times { newpass << chars[rand(chars.size-1)] } |
|
259 | length.times { newpass << chars[rand(chars.size-1)] } |
|
258 | return newpass |
|
260 | return newpass |
|
259 | end |
|
261 | end |
|
260 |
|
262 | ||
|
261 | def import_from_file(f) |
|
263 | def import_from_file(f) |
|
262 | data_hash = YAML.load(f) |
|
264 | data_hash = YAML.load(f) |
|
263 | @import_log = "" |
|
265 | @import_log = "" |
|
264 |
|
266 | ||
|
265 | country_data = data_hash[:countries] |
|
267 | country_data = data_hash[:countries] |
|
266 | site_data = data_hash[:sites] |
|
268 | site_data = data_hash[:sites] |
|
267 | user_data = data_hash[:users] |
|
269 | user_data = data_hash[:users] |
|
268 |
|
270 | ||
|
269 | # import country |
|
271 | # import country |
|
270 | countries = {} |
|
272 | countries = {} |
|
271 | country_data.each_pair do |id,country| |
|
273 | country_data.each_pair do |id,country| |
|
272 | c = Country.find_by_name(country[:name]) |
|
274 | c = Country.find_by_name(country[:name]) |
|
273 | if c!=nil |
|
275 | if c!=nil |
|
274 | countries[id] = c |
|
276 | countries[id] = c |
|
275 | @import_log << "Found #{country[:name]}\n" |
|
277 | @import_log << "Found #{country[:name]}\n" |
|
276 | else |
|
278 | else |
|
277 | countries[id] = Country.new(:name => country[:name]) |
|
279 | countries[id] = Country.new(:name => country[:name]) |
|
278 | countries[id].save |
|
280 | countries[id].save |
|
279 | @import_log << "Created #{country[:name]}\n" |
|
281 | @import_log << "Created #{country[:name]}\n" |
|
280 | end |
|
282 | end |
|
281 | end |
|
283 | end |
|
282 |
|
284 | ||
|
283 | # import sites |
|
285 | # import sites |
|
284 | sites = {} |
|
286 | sites = {} |
|
285 | site_data.each_pair do |id,site| |
|
287 | site_data.each_pair do |id,site| |
|
286 | s = Site.find_by_name(site[:name]) |
|
288 | s = Site.find_by_name(site[:name]) |
|
287 | if s!=nil |
|
289 | if s!=nil |
|
288 | @import_log << "Found #{site[:name]}\n" |
|
290 | @import_log << "Found #{site[:name]}\n" |
|
289 | else |
|
291 | else |
|
290 | s = Site.new(:name => site[:name]) |
|
292 | s = Site.new(:name => site[:name]) |
|
291 | @import_log << "Created #{site[:name]}\n" |
|
293 | @import_log << "Created #{site[:name]}\n" |
|
292 | end |
|
294 | end |
|
293 | s.password = site[:password] |
|
295 | s.password = site[:password] |
|
294 | s.country = countries[site[:country_id]] |
|
296 | s.country = countries[site[:country_id]] |
|
295 | s.save |
|
297 | s.save |
|
296 | sites[id] = s |
|
298 | sites[id] = s |
|
297 | end |
|
299 | end |
|
298 |
|
300 | ||
|
299 | # import users |
|
301 | # import users |
|
300 | user_data.each_pair do |id,user| |
|
302 | user_data.each_pair do |id,user| |
|
301 | u = User.find_by_login(user[:login]) |
|
303 | u = User.find_by_login(user[:login]) |
|
302 | if u!=nil |
|
304 | if u!=nil |
|
303 | @import_log << "Found #{user[:login]}\n" |
|
305 | @import_log << "Found #{user[:login]}\n" |
|
304 | else |
|
306 | else |
|
305 | u = User.new(:login => user[:login]) |
|
307 | u = User.new(:login => user[:login]) |
|
306 | @import_log << "Created #{user[:login]}\n" |
|
308 | @import_log << "Created #{user[:login]}\n" |
|
307 | end |
|
309 | end |
|
308 | u.full_name = user[:name] |
|
310 | u.full_name = user[:name] |
|
309 | u.password = user[:password] |
|
311 | u.password = user[:password] |
|
310 | u.country = countries[user[:country_id]] |
|
312 | u.country = countries[user[:country_id]] |
|
311 | u.site = sites[user[:site_id]] |
|
313 | u.site = sites[user[:site_id]] |
|
312 | u.activated = true |
|
314 | u.activated = true |
|
313 | u.email = "empty-#{u.login}@none.com" |
|
315 | u.email = "empty-#{u.login}@none.com" |
|
314 | if not u.save |
|
316 | if not u.save |
|
315 | @import_log << "Errors\n" |
|
317 | @import_log << "Errors\n" |
|
316 | u.errors.each { |attr,msg| @import_log << "#{attr} - #{msg}\n" } |
|
318 | u.errors.each { |attr,msg| @import_log << "#{attr} - #{msg}\n" } |
|
317 | end |
|
319 | end |
|
318 | end |
|
320 | end |
|
319 |
|
321 | ||
|
320 | end |
|
322 | end |
|
321 |
|
323 | ||
|
322 | end |
|
324 | end |
@@ -1,16 +1,16 | |||||
|
1 | %h1 Bulk edit users in contests |
|
1 | %h1 Bulk edit users in contests |
|
2 |
|
2 | ||
|
3 | - form_tag :action => 'manage_contest' do |
|
3 | - form_tag :action => 'manage_contest' do |
|
4 | List users' login below; one per line. |
|
4 | List users' login below; one per line. |
|
5 | %br/ |
|
5 | %br/ |
|
6 | = text_area_tag 'login_list', nil, :rows => 25, :cols => 80 |
|
6 | = text_area_tag 'login_list', nil, :rows => 25, :cols => 80 |
|
7 | %br/ |
|
7 | %br/ |
|
8 | You want to |
|
8 | You want to |
|
9 | - = select(nil,"operation",[['add users to','add'],['remove users from','remove']]) |
|
9 | + = select(nil,"operation",[['assign users to','assign'],['add users to','add'],['remove users from','remove']]) |
|
10 | contest |
|
10 | contest |
|
11 | = select("contest","id",Contest.all.collect {|c| [c.title, c.id]}) |
|
11 | = select("contest","id",Contest.all.collect {|c| [c.title, c.id]}) |
|
12 | |
|
12 | |
|
13 | = submit_tag "Perform action", :confirm => 'Are you sure?' |
|
13 | = submit_tag "Perform action", :confirm => 'Are you sure?' |
|
14 |
|
14 | ||
|
15 | %hr/ |
|
15 | %hr/ |
|
16 | = link_to '[go back to index]', :action => 'index' |
|
16 | = link_to '[go back to index]', :action => 'index' |
@@ -1,237 +1,242 | |||||
|
1 | body { |
|
1 | body { |
|
2 | background: white url(../images/topbg.jpg) repeat-x top center; |
|
2 | background: white url(../images/topbg.jpg) repeat-x top center; |
|
3 | font-size: 13px; |
|
3 | font-size: 13px; |
|
4 | font-family: Tahoma, "sans-serif"; |
|
4 | font-family: Tahoma, "sans-serif"; |
|
5 | margin: 10px; |
|
5 | margin: 10px; |
|
6 | padding: 10px; } |
|
6 | padding: 10px; } |
|
7 |
|
7 | ||
|
8 | input { |
|
8 | input { |
|
9 | font-family: Tahoma, "sans-serif"; } |
|
9 | font-family: Tahoma, "sans-serif"; } |
|
10 |
|
10 | ||
|
11 | h1 { |
|
11 | h1 { |
|
12 | font-size: 24px; |
|
12 | font-size: 24px; |
|
13 | color: #334488; |
|
13 | color: #334488; |
|
14 | line-height: 2em; } |
|
14 | line-height: 2em; } |
|
15 |
|
15 | ||
|
16 | h2 { |
|
16 | h2 { |
|
17 | font-size: 18px; |
|
17 | font-size: 18px; |
|
18 | color: #5566bb; |
|
18 | color: #5566bb; |
|
19 | line-height: 1.5em; } |
|
19 | line-height: 1.5em; } |
|
20 |
|
20 | ||
|
21 | hr { |
|
21 | hr { |
|
22 | border-top: 1px solid #dddddd; |
|
22 | border-top: 1px solid #dddddd; |
|
23 | border-bottom: 1px solid #eeeeee; } |
|
23 | border-bottom: 1px solid #eeeeee; } |
|
24 |
|
24 | ||
|
25 | a { |
|
25 | a { |
|
26 | color: #6666cc; |
|
26 | color: #6666cc; |
|
27 | text-decoration: none; } |
|
27 | text-decoration: none; } |
|
28 | a:link, a:visited { |
|
28 | a:link, a:visited { |
|
29 | color: #6666cc; |
|
29 | color: #6666cc; |
|
30 | text-decoration: none; } |
|
30 | text-decoration: none; } |
|
31 | a:hover, a:focus { |
|
31 | a:hover, a:focus { |
|
32 | color: #111166; |
|
32 | color: #111166; |
|
33 | text-decoration: none; } |
|
33 | text-decoration: none; } |
|
34 |
|
34 | ||
|
35 | div.userbar { |
|
35 | div.userbar { |
|
36 | line-height: 1.5em; |
|
36 | line-height: 1.5em; |
|
37 | text-align: right; |
|
37 | text-align: right; |
|
38 | font-size: 12px; } |
|
38 | font-size: 12px; } |
|
39 | div.title { |
|
39 | div.title { |
|
40 | padding: 10px 0px; |
|
40 | padding: 10px 0px; |
|
41 | line-height: 1.5em; |
|
41 | line-height: 1.5em; |
|
42 | font-size: 13px; } |
|
42 | font-size: 13px; } |
|
43 | div.title span.contest-over-msg { |
|
43 | div.title span.contest-over-msg { |
|
44 | font-size: 15px; |
|
44 | font-size: 15px; |
|
45 | color: red; } |
|
45 | color: red; } |
|
46 | div.title table { |
|
46 | div.title table { |
|
47 | width: 100%; |
|
47 | width: 100%; |
|
48 | font-weight: bold; } |
|
48 | font-weight: bold; } |
|
49 | div.title td.left-col { |
|
49 | div.title td.left-col { |
|
50 | text-align: left; |
|
50 | text-align: left; |
|
51 | vertical-align: top; |
|
51 | vertical-align: top; |
|
52 | color: #444444; } |
|
52 | color: #444444; } |
|
53 | div.title td.right-col { |
|
53 | div.title td.right-col { |
|
54 | text-align: right; |
|
54 | text-align: right; |
|
55 | vertical-align: top; |
|
55 | vertical-align: top; |
|
56 | font-size: 18px; |
|
56 | font-size: 18px; |
|
57 | color: #116699; } |
|
57 | color: #116699; } |
|
58 |
|
58 | ||
|
59 | table.info { |
|
59 | table.info { |
|
60 | margin: 10px 0; |
|
60 | margin: 10px 0; |
|
61 | border: 1px solid #666666; |
|
61 | border: 1px solid #666666; |
|
62 | border-collapse: collapse; |
|
62 | border-collapse: collapse; |
|
63 | font-size: 12px; } |
|
63 | font-size: 12px; } |
|
64 | table.info th { |
|
64 | table.info th { |
|
65 | border: 1px solid #666666; |
|
65 | border: 1px solid #666666; |
|
66 | line-height: 1.5em; |
|
66 | line-height: 1.5em; |
|
67 | padding: 0 0.5em; } |
|
67 | padding: 0 0.5em; } |
|
68 | table.info td { |
|
68 | table.info td { |
|
69 | border-left: 1px solid #666666; |
|
69 | border-left: 1px solid #666666; |
|
70 | border-right: 1px solid #666666; |
|
70 | border-right: 1px solid #666666; |
|
71 | line-height: 1.5em; |
|
71 | line-height: 1.5em; |
|
72 | padding: 0 0.5em; } |
|
72 | padding: 0 0.5em; } |
|
73 |
|
73 | ||
|
74 | tr.info-head { |
|
74 | tr.info-head { |
|
75 | background: #777777; |
|
75 | background: #777777; |
|
76 | color: white; } |
|
76 | color: white; } |
|
77 | tr.info-odd { |
|
77 | tr.info-odd { |
|
78 | background: #eeeeee; } |
|
78 | background: #eeeeee; } |
|
79 | tr.info-even { |
|
79 | tr.info-even { |
|
80 | background: #f9f9f9; } |
|
80 | background: #f9f9f9; } |
|
81 |
|
81 | ||
|
82 | .infobox { |
|
82 | .infobox { |
|
83 | background: #eeeeff; |
|
83 | background: #eeeeff; |
|
84 | border: 1px dotted #99aaee; |
|
84 | border: 1px dotted #99aaee; |
|
85 | padding: 5px; |
|
85 | padding: 5px; |
|
86 | margin: 10px 0px; |
|
86 | margin: 10px 0px; |
|
87 | color: black; |
|
87 | color: black; |
|
88 | font-size: 13px; } |
|
88 | font-size: 13px; } |
|
89 |
|
89 | ||
|
90 | .submitbox { |
|
90 | .submitbox { |
|
91 | background: #eeeeff; |
|
91 | background: #eeeeff; |
|
92 | border: 1px dotted #99aaee; |
|
92 | border: 1px dotted #99aaee; |
|
93 | padding: 5px; |
|
93 | padding: 5px; |
|
94 | margin: 10px 0px; |
|
94 | margin: 10px 0px; |
|
95 | color: black; |
|
95 | color: black; |
|
96 | font-size: 13px; } |
|
96 | font-size: 13px; } |
|
97 |
|
97 | ||
|
98 | .errorExplanation { |
|
98 | .errorExplanation { |
|
99 | border: 1px dotted gray; |
|
99 | border: 1px dotted gray; |
|
100 | color: #bb2222; |
|
100 | color: #bb2222; |
|
101 | padding: 5px 15px 5px 15px; |
|
101 | padding: 5px 15px 5px 15px; |
|
102 | margin-bottom: 5px; |
|
102 | margin-bottom: 5px; |
|
103 | background-color: white; |
|
103 | background-color: white; |
|
104 | font-weight: normal; } |
|
104 | font-weight: normal; } |
|
105 | .errorExplanation h2 { |
|
105 | .errorExplanation h2 { |
|
106 | color: #cc1111; |
|
106 | color: #cc1111; |
|
107 | font-weight: bold; } |
|
107 | font-weight: bold; } |
|
108 |
|
108 | ||
|
109 | table.uinfo { |
|
109 | table.uinfo { |
|
110 | border-collapse: collapse; |
|
110 | border-collapse: collapse; |
|
111 | border: 1px solid black; |
|
111 | border: 1px solid black; |
|
112 | font-size: 13px; } |
|
112 | font-size: 13px; } |
|
113 |
|
113 | ||
|
114 | td.uinfo { |
|
114 | td.uinfo { |
|
115 | vertical-align: top; |
|
115 | vertical-align: top; |
|
116 | border: 1px solid black; |
|
116 | border: 1px solid black; |
|
117 | padding: 5px; } |
|
117 | padding: 5px; } |
|
118 |
|
118 | ||
|
119 | th.uinfo { |
|
119 | th.uinfo { |
|
120 | background: lightgreen; |
|
120 | background: lightgreen; |
|
121 | vertical-align: top; |
|
121 | vertical-align: top; |
|
122 | text-align: right; |
|
122 | text-align: right; |
|
123 | border: 1px solid black; |
|
123 | border: 1px solid black; |
|
124 | padding: 5px; } |
|
124 | padding: 5px; } |
|
125 |
|
125 | ||
|
126 | div.compilermsgbody { |
|
126 | div.compilermsgbody { |
|
127 | font-family: monospace; } |
|
127 | font-family: monospace; } |
|
128 | div.task-menu { |
|
128 | div.task-menu { |
|
129 | text-align: center; |
|
129 | text-align: center; |
|
130 | font-size: 13px; |
|
130 | font-size: 13px; |
|
131 | line-height: 1.75em; |
|
131 | line-height: 1.75em; |
|
132 | font-weight: bold; |
|
132 | font-weight: bold; |
|
133 | border-top: 1px dashed gray; |
|
133 | border-top: 1px dashed gray; |
|
134 | border-bottom: 1px dashed gray; |
|
134 | border-bottom: 1px dashed gray; |
|
135 | margin-top: 2px; |
|
135 | margin-top: 2px; |
|
136 | margin-bottom: 4px; } |
|
136 | margin-bottom: 4px; } |
|
137 |
|
137 | ||
|
138 | table.taskdesc { |
|
138 | table.taskdesc { |
|
139 | border: 2px solid #dddddd; |
|
139 | border: 2px solid #dddddd; |
|
140 | border-collapse: collapse; |
|
140 | border-collapse: collapse; |
|
141 | margin: 10px auto; |
|
141 | margin: 10px auto; |
|
142 | width: 90%; |
|
142 | width: 90%; |
|
143 | font-size: 13px; } |
|
143 | font-size: 13px; } |
|
144 | table.taskdesc p { |
|
144 | table.taskdesc p { |
|
145 | font-size: 13px; } |
|
145 | font-size: 13px; } |
|
146 | table.taskdesc tr.name { |
|
146 | table.taskdesc tr.name { |
|
147 | border: 2px solid #dddddd; |
|
147 | border: 2px solid #dddddd; |
|
148 | background: #dddddd; |
|
148 | background: #dddddd; |
|
149 | color: #333333; |
|
149 | color: #333333; |
|
150 | font-weight: bold; |
|
150 | font-weight: bold; |
|
151 | font-size: 14px; |
|
151 | font-size: 14px; |
|
152 | line-height: 1.5em; |
|
152 | line-height: 1.5em; |
|
153 | text-align: center; } |
|
153 | text-align: center; } |
|
154 | table.taskdesc td.desc-odd { |
|
154 | table.taskdesc td.desc-odd { |
|
155 | padding: 5px; |
|
155 | padding: 5px; |
|
156 | padding-left: 20px; |
|
156 | padding-left: 20px; |
|
157 | background: #fefeee; } |
|
157 | background: #fefeee; } |
|
158 | table.taskdesc td.desc-even { |
|
158 | table.taskdesc td.desc-even { |
|
159 | padding: 5px; |
|
159 | padding: 5px; |
|
160 | padding-left: 20px; |
|
160 | padding-left: 20px; |
|
161 | background: #feeefe; } |
|
161 | background: #feeefe; } |
|
162 |
|
162 | ||
|
163 |
- |
|
163 | + .announcementbox { |
|
164 | margin: 10px 0px; |
|
164 | margin: 10px 0px; |
|
165 | background: #bbddee; |
|
165 | background: #bbddee; |
|
166 | padding: 1px; } |
|
166 | padding: 1px; } |
|
167 |
- |
|
167 | + .announcementbox span.title { |
|
168 | font-weight: bold; |
|
168 | font-weight: bold; |
|
169 | color: #224455; |
|
169 | color: #224455; |
|
170 | padding-left: 10px; |
|
170 | padding-left: 10px; |
|
171 | line-height: 1.6em; } |
|
171 | line-height: 1.6em; } |
|
172 | - div.announcement { |
|
172 | + |
|
|
173 | + .announcement { | ||
|
173 | margin: 2px; |
|
174 | margin: 2px; |
|
174 | background: white; |
|
175 | background: white; |
|
175 | padding: 1px; |
|
176 | padding: 1px; |
|
176 | padding-left: 10px; |
|
177 | padding-left: 10px; |
|
177 | padding-right: 10px; |
|
178 | padding-right: 10px; |
|
178 | padding-top: 5px; |
|
179 | padding-top: 5px; |
|
179 | padding-bottom: 5px; } |
|
180 | padding-bottom: 5px; } |
|
180 |
|
181 | ||
|
181 | .announcement p { |
|
182 | .announcement p { |
|
182 | font-size: 12px; |
|
183 | font-size: 12px; |
|
183 | margin: 2px; } |
|
184 | margin: 2px; } |
|
184 |
|
185 | ||
|
185 |
- |
|
186 | + .pub-info { |
|
186 | text-align: right; |
|
187 | text-align: right; |
|
187 | font-style: italic; |
|
188 | font-style: italic; |
|
188 | font-size: 9px; } |
|
189 | font-size: 9px; } |
|
189 |
- |
|
190 | + .pub-info p { |
|
190 | text-align: right; |
|
191 | text-align: right; |
|
191 | font-style: italic; |
|
192 | font-style: italic; |
|
192 | font-size: 9px; } |
|
193 | font-size: 9px; } |
|
193 |
|
194 | ||
|
194 | .announcement .toggles { |
|
195 | .announcement .toggles { |
|
195 | font-weight: normal; |
|
196 | font-weight: normal; |
|
196 | float: right; |
|
197 | float: right; |
|
197 | font-size: 80%; } |
|
198 | font-size: 80%; } |
|
198 | .announcement .announcement-title { |
|
199 | .announcement .announcement-title { |
|
199 | font-weight: bold; } |
|
200 | font-weight: bold; } |
|
200 |
|
201 | ||
|
201 | div.message { |
|
202 | div.message { |
|
202 | margin: 10px 0 0; } |
|
203 | margin: 10px 0 0; } |
|
203 | div.message div.message { |
|
204 | div.message div.message { |
|
204 | margin: 0 0 0 30px; } |
|
205 | margin: 0 0 0 30px; } |
|
205 | div.message div.body { |
|
206 | div.message div.body { |
|
206 | border: 2px solid #dddddd; |
|
207 | border: 2px solid #dddddd; |
|
207 | background: #fff8f8; |
|
208 | background: #fff8f8; |
|
208 | padding-left: 5px; } |
|
209 | padding-left: 5px; } |
|
209 | div.message div.reply-body { |
|
210 | div.message div.reply-body { |
|
210 | border: 2px solid #bbbbbb; |
|
211 | border: 2px solid #bbbbbb; |
|
211 | background: #fffff8; |
|
212 | background: #fffff8; |
|
212 | padding-left: 5px; } |
|
213 | padding-left: 5px; } |
|
213 | div.message div.stat { |
|
214 | div.message div.stat { |
|
214 | font-size: 10px; |
|
215 | font-size: 10px; |
|
215 | line-height: 1.75em; |
|
216 | line-height: 1.75em; |
|
216 | padding: 0 5px; |
|
217 | padding: 0 5px; |
|
217 | color: #333333; |
|
218 | color: #333333; |
|
218 | background: #dddddd; |
|
219 | background: #dddddd; |
|
219 | font-weight: bold; } |
|
220 | font-weight: bold; } |
|
220 | div.message div.message div.stat { |
|
221 | div.message div.message div.stat { |
|
221 | font-size: 10px; |
|
222 | font-size: 10px; |
|
222 | line-height: 1.75em; |
|
223 | line-height: 1.75em; |
|
223 | padding: 0 5px; |
|
224 | padding: 0 5px; |
|
224 | color: #444444; |
|
225 | color: #444444; |
|
225 | background: #bbbbbb; |
|
226 | background: #bbbbbb; |
|
226 | font-weight: bold; } |
|
227 | font-weight: bold; } |
|
227 | div.contest-title { |
|
228 | div.contest-title { |
|
228 | color: white; |
|
229 | color: white; |
|
229 | text-align: center; |
|
230 | text-align: center; |
|
230 | line-height: 2em; } |
|
231 | line-height: 2em; } |
|
231 | div.registration-desc, div.test-desc { |
|
232 | div.registration-desc, div.test-desc { |
|
232 | border: 1px dotted gray; |
|
233 | border: 1px dotted gray; |
|
233 | background: #f5f5f5; |
|
234 | background: #f5f5f5; |
|
234 | padding: 5px; |
|
235 | padding: 5px; |
|
235 | margin: 10px 0; |
|
236 | margin: 10px 0; |
|
236 | font-size: 12px; |
|
237 | font-size: 12px; |
|
237 | line-height: 1.5em; } |
|
238 | line-height: 1.5em; } |
|
|
239 | + | ||
|
|
240 | + h2.contest-title { | ||
|
|
241 | + margin-top: 5px; | ||
|
|
242 | + margin-bottom: 5px; } |
@@ -1,290 +1,293 | |||||
|
1 | body |
|
1 | body |
|
2 | background: white url(../images/topbg.jpg) repeat-x top center |
|
2 | background: white url(../images/topbg.jpg) repeat-x top center |
|
3 | font-size: 13px |
|
3 | font-size: 13px |
|
4 | font-family: Tahoma, "sans-serif" |
|
4 | font-family: Tahoma, "sans-serif" |
|
5 | margin: 10px |
|
5 | margin: 10px |
|
6 | padding: 10px |
|
6 | padding: 10px |
|
7 |
|
7 | ||
|
8 |
|
8 | ||
|
9 | input |
|
9 | input |
|
10 | font-family: Tahoma, "sans-serif" |
|
10 | font-family: Tahoma, "sans-serif" |
|
11 |
|
11 | ||
|
12 |
|
12 | ||
|
13 | h1 |
|
13 | h1 |
|
14 | font-size: 24px |
|
14 | font-size: 24px |
|
15 | color: #334488 |
|
15 | color: #334488 |
|
16 | line-height: 2em |
|
16 | line-height: 2em |
|
17 |
|
17 | ||
|
18 |
|
18 | ||
|
19 | h2 |
|
19 | h2 |
|
20 | font-size: 18px |
|
20 | font-size: 18px |
|
21 | color: #5566bb |
|
21 | color: #5566bb |
|
22 | line-height: 1.5em |
|
22 | line-height: 1.5em |
|
23 |
|
23 | ||
|
24 |
|
24 | ||
|
25 | hr |
|
25 | hr |
|
26 | border-top: 1px solid #dddddd |
|
26 | border-top: 1px solid #dddddd |
|
27 | border-bottom: 1px solid #eeeeee |
|
27 | border-bottom: 1px solid #eeeeee |
|
28 |
|
28 | ||
|
29 |
|
29 | ||
|
30 | a |
|
30 | a |
|
31 | color: #6666cc |
|
31 | color: #6666cc |
|
32 | text-decoration: none |
|
32 | text-decoration: none |
|
33 |
|
33 | ||
|
34 | &:link, &:visited |
|
34 | &:link, &:visited |
|
35 | color: #6666cc |
|
35 | color: #6666cc |
|
36 | text-decoration: none |
|
36 | text-decoration: none |
|
37 |
|
37 | ||
|
38 | &:hover, &:focus |
|
38 | &:hover, &:focus |
|
39 | color: #111166 |
|
39 | color: #111166 |
|
40 | text-decoration: none |
|
40 | text-decoration: none |
|
41 |
|
41 | ||
|
42 |
|
42 | ||
|
43 | div |
|
43 | div |
|
44 | &.userbar |
|
44 | &.userbar |
|
45 | line-height: 1.5em |
|
45 | line-height: 1.5em |
|
46 | text-align: right |
|
46 | text-align: right |
|
47 | font-size: 12px |
|
47 | font-size: 12px |
|
48 |
|
48 | ||
|
49 | &.title |
|
49 | &.title |
|
50 | padding: 10px 0px |
|
50 | padding: 10px 0px |
|
51 | line-height: 1.5em |
|
51 | line-height: 1.5em |
|
52 | font-size: 13px |
|
52 | font-size: 13px |
|
53 |
|
53 | ||
|
54 | span.contest-over-msg |
|
54 | span.contest-over-msg |
|
55 | font-size: 15px |
|
55 | font-size: 15px |
|
56 | color: red |
|
56 | color: red |
|
57 |
|
57 | ||
|
58 | table |
|
58 | table |
|
59 | width: 100% |
|
59 | width: 100% |
|
60 | font-weight: bold |
|
60 | font-weight: bold |
|
61 |
|
61 | ||
|
62 | td |
|
62 | td |
|
63 | &.left-col |
|
63 | &.left-col |
|
64 | text-align: left |
|
64 | text-align: left |
|
65 | vertical-align: top |
|
65 | vertical-align: top |
|
66 | color: #444444 |
|
66 | color: #444444 |
|
67 |
|
67 | ||
|
68 | &.right-col |
|
68 | &.right-col |
|
69 | text-align: right |
|
69 | text-align: right |
|
70 | vertical-align: top |
|
70 | vertical-align: top |
|
71 | font-size: 18px |
|
71 | font-size: 18px |
|
72 | color: #116699 |
|
72 | color: #116699 |
|
73 |
|
73 | ||
|
74 |
|
74 | ||
|
75 | table.info |
|
75 | table.info |
|
76 | margin: 10px 0 |
|
76 | margin: 10px 0 |
|
77 | border: 1px solid #666666 |
|
77 | border: 1px solid #666666 |
|
78 | border-collapse: collapse |
|
78 | border-collapse: collapse |
|
79 | font-size: 12px |
|
79 | font-size: 12px |
|
80 |
|
80 | ||
|
81 | th |
|
81 | th |
|
82 | border: 1px solid #666666 |
|
82 | border: 1px solid #666666 |
|
83 | line-height: 1.5em |
|
83 | line-height: 1.5em |
|
84 | padding: 0 0.5em |
|
84 | padding: 0 0.5em |
|
85 |
|
85 | ||
|
86 | td |
|
86 | td |
|
87 | border-left: 1px solid #666666 |
|
87 | border-left: 1px solid #666666 |
|
88 | border-right: 1px solid #666666 |
|
88 | border-right: 1px solid #666666 |
|
89 | line-height: 1.5em |
|
89 | line-height: 1.5em |
|
90 | padding: 0 0.5em |
|
90 | padding: 0 0.5em |
|
91 |
|
91 | ||
|
92 |
|
92 | ||
|
93 | tr |
|
93 | tr |
|
94 | &.info-head |
|
94 | &.info-head |
|
95 | background: #777777 |
|
95 | background: #777777 |
|
96 | color: white |
|
96 | color: white |
|
97 |
|
97 | ||
|
98 | &.info-odd |
|
98 | &.info-odd |
|
99 | background: #eeeeee |
|
99 | background: #eeeeee |
|
100 |
|
100 | ||
|
101 | &.info-even |
|
101 | &.info-even |
|
102 | background: #f9f9f9 |
|
102 | background: #f9f9f9 |
|
103 |
|
103 | ||
|
104 | =basicbox |
|
104 | =basicbox |
|
105 | background: #eeeeff |
|
105 | background: #eeeeff |
|
106 | border: 1px dotted #99aaee |
|
106 | border: 1px dotted #99aaee |
|
107 | padding: 5px |
|
107 | padding: 5px |
|
108 | margin: 10px 0px |
|
108 | margin: 10px 0px |
|
109 | color: black |
|
109 | color: black |
|
110 | font-size: 13px |
|
110 | font-size: 13px |
|
111 |
|
111 | ||
|
112 | .infobox |
|
112 | .infobox |
|
113 | +basicbox |
|
113 | +basicbox |
|
114 |
|
114 | ||
|
115 | .submitbox |
|
115 | .submitbox |
|
116 | +basicbox |
|
116 | +basicbox |
|
117 |
|
117 | ||
|
118 | .errorExplanation |
|
118 | .errorExplanation |
|
119 | border: 1px dotted gray |
|
119 | border: 1px dotted gray |
|
120 | color: #bb2222 |
|
120 | color: #bb2222 |
|
121 | padding: 5px 15px 5px 15px |
|
121 | padding: 5px 15px 5px 15px |
|
122 | margin-bottom: 5px |
|
122 | margin-bottom: 5px |
|
123 | background-color: white |
|
123 | background-color: white |
|
124 | font-weight: normal |
|
124 | font-weight: normal |
|
125 |
|
125 | ||
|
126 | h2 |
|
126 | h2 |
|
127 | color: #cc1111 |
|
127 | color: #cc1111 |
|
128 | font-weight: bold |
|
128 | font-weight: bold |
|
129 |
|
129 | ||
|
130 |
|
130 | ||
|
131 | table.uinfo |
|
131 | table.uinfo |
|
132 | border-collapse: collapse |
|
132 | border-collapse: collapse |
|
133 | border: 1px solid black |
|
133 | border: 1px solid black |
|
134 | font-size: 13px |
|
134 | font-size: 13px |
|
135 |
|
135 | ||
|
136 |
|
136 | ||
|
137 | td.uinfo |
|
137 | td.uinfo |
|
138 | vertical-align: top |
|
138 | vertical-align: top |
|
139 | border: 1px solid black |
|
139 | border: 1px solid black |
|
140 | padding: 5px |
|
140 | padding: 5px |
|
141 |
|
141 | ||
|
142 |
|
142 | ||
|
143 | th.uinfo |
|
143 | th.uinfo |
|
144 | background: lightgreen |
|
144 | background: lightgreen |
|
145 | vertical-align: top |
|
145 | vertical-align: top |
|
146 | text-align: right |
|
146 | text-align: right |
|
147 | border: 1px solid black |
|
147 | border: 1px solid black |
|
148 | padding: 5px |
|
148 | padding: 5px |
|
149 |
|
149 | ||
|
150 |
|
150 | ||
|
151 | div |
|
151 | div |
|
152 | &.compilermsgbody |
|
152 | &.compilermsgbody |
|
153 | font-family: monospace |
|
153 | font-family: monospace |
|
154 |
|
154 | ||
|
155 | &.task-menu |
|
155 | &.task-menu |
|
156 | text-align: center |
|
156 | text-align: center |
|
157 | font-size: 13px |
|
157 | font-size: 13px |
|
158 | line-height: 1.75em |
|
158 | line-height: 1.75em |
|
159 | font-weight: bold |
|
159 | font-weight: bold |
|
160 | border-top: 1px dashed gray |
|
160 | border-top: 1px dashed gray |
|
161 | border-bottom: 1px dashed gray |
|
161 | border-bottom: 1px dashed gray |
|
162 | margin-top: 2px |
|
162 | margin-top: 2px |
|
163 | margin-bottom: 4px |
|
163 | margin-bottom: 4px |
|
164 |
|
164 | ||
|
165 |
|
165 | ||
|
166 | table.taskdesc |
|
166 | table.taskdesc |
|
167 | border: 2px solid #dddddd |
|
167 | border: 2px solid #dddddd |
|
168 | border-collapse: collapse |
|
168 | border-collapse: collapse |
|
169 | margin: 10px auto |
|
169 | margin: 10px auto |
|
170 | width: 90% |
|
170 | width: 90% |
|
171 | font-size: 13px |
|
171 | font-size: 13px |
|
172 |
|
172 | ||
|
173 | p |
|
173 | p |
|
174 | font-size: 13px |
|
174 | font-size: 13px |
|
175 |
|
175 | ||
|
176 | tr.name |
|
176 | tr.name |
|
177 | border: 2px solid #dddddd |
|
177 | border: 2px solid #dddddd |
|
178 | background: #dddddd |
|
178 | background: #dddddd |
|
179 | color: #333333 |
|
179 | color: #333333 |
|
180 | font-weight: bold |
|
180 | font-weight: bold |
|
181 | font-size: 14px |
|
181 | font-size: 14px |
|
182 | line-height: 1.5em |
|
182 | line-height: 1.5em |
|
183 | text-align: center |
|
183 | text-align: center |
|
184 |
|
184 | ||
|
185 | td |
|
185 | td |
|
186 | &.desc-odd |
|
186 | &.desc-odd |
|
187 | padding: 5px |
|
187 | padding: 5px |
|
188 | padding-left: 20px |
|
188 | padding-left: 20px |
|
189 | background: #fefeee |
|
189 | background: #fefeee |
|
190 |
|
190 | ||
|
191 | &.desc-even |
|
191 | &.desc-even |
|
192 | padding: 5px |
|
192 | padding: 5px |
|
193 | padding-left: 20px |
|
193 | padding-left: 20px |
|
194 | background: #feeefe |
|
194 | background: #feeefe |
|
195 |
|
195 | ||
|
196 |
|
196 | ||
|
197 | - div |
|
197 | + .announcementbox |
|
198 | - &.announcementbox |
|
198 | + margin: 10px 0px |
|
199 | - margin: 10px 0px |
|
199 | + background: #bbddee |
|
200 | - background: #bbddee |
|
200 | + padding: 1px |
|
201 | - padding: 1px |
|
||
|
202 |
|
201 | ||
|
203 |
- |
|
202 | + span.title |
|
204 |
- |
|
203 | + font-weight: bold |
|
205 |
- |
|
204 | + color: #224455 |
|
206 |
- |
|
205 | + padding-left: 10px |
|
207 |
- |
|
206 | + line-height: 1.6em |
|
208 |
|
207 | ||
|
209 |
- |
|
208 | + .announcement |
|
210 |
- |
|
209 | + margin: 2px |
|
211 |
- |
|
210 | + background: white |
|
212 |
- |
|
211 | + padding: 1px |
|
213 |
- |
|
212 | + padding-left: 10px |
|
214 |
- |
|
213 | + padding-right: 10px |
|
215 |
- |
|
214 | + padding-top: 5px |
|
216 |
- |
|
215 | + padding-bottom: 5px |
|
217 |
|
216 | ||
|
218 |
|
217 | ||
|
219 | .announcement p |
|
218 | .announcement p |
|
220 | font-size: 12px |
|
219 | font-size: 12px |
|
221 | margin: 2px |
|
220 | margin: 2px |
|
222 |
|
221 | ||
|
223 |
|
222 | ||
|
224 |
- |
|
223 | + .pub-info |
|
225 | text-align: right |
|
224 | text-align: right |
|
226 | font-style: italic |
|
225 | font-style: italic |
|
227 | font-size: 9px |
|
226 | font-size: 9px |
|
228 |
|
227 | ||
|
229 | p |
|
228 | p |
|
230 | text-align: right |
|
229 | text-align: right |
|
231 | font-style: italic |
|
230 | font-style: italic |
|
232 | font-size: 9px |
|
231 | font-size: 9px |
|
233 |
|
232 | ||
|
234 |
|
233 | ||
|
235 | .announcement |
|
234 | .announcement |
|
236 | .toggles |
|
235 | .toggles |
|
237 | font-weight: normal |
|
236 | font-weight: normal |
|
238 | float: right |
|
237 | float: right |
|
239 | font-size: 80% |
|
238 | font-size: 80% |
|
240 |
|
239 | ||
|
241 | .announcement-title |
|
240 | .announcement-title |
|
242 | font-weight: bold |
|
241 | font-weight: bold |
|
243 |
|
242 | ||
|
244 |
|
243 | ||
|
245 | div |
|
244 | div |
|
246 | &.message |
|
245 | &.message |
|
247 | margin: 10px 0 0 |
|
246 | margin: 10px 0 0 |
|
248 |
|
247 | ||
|
249 | div |
|
248 | div |
|
250 | &.message |
|
249 | &.message |
|
251 | margin: 0 0 0 30px |
|
250 | margin: 0 0 0 30px |
|
252 |
|
251 | ||
|
253 | &.body |
|
252 | &.body |
|
254 | border: 2px solid #dddddd |
|
253 | border: 2px solid #dddddd |
|
255 | background: #fff8f8 |
|
254 | background: #fff8f8 |
|
256 | padding-left: 5px |
|
255 | padding-left: 5px |
|
257 |
|
256 | ||
|
258 | &.reply-body |
|
257 | &.reply-body |
|
259 | border: 2px solid #bbbbbb |
|
258 | border: 2px solid #bbbbbb |
|
260 | background: #fffff8 |
|
259 | background: #fffff8 |
|
261 | padding-left: 5px |
|
260 | padding-left: 5px |
|
262 |
|
261 | ||
|
263 | &.stat |
|
262 | &.stat |
|
264 | font-size: 10px |
|
263 | font-size: 10px |
|
265 | line-height: 1.75em |
|
264 | line-height: 1.75em |
|
266 | padding: 0 5px |
|
265 | padding: 0 5px |
|
267 | color: #333333 |
|
266 | color: #333333 |
|
268 | background: #dddddd |
|
267 | background: #dddddd |
|
269 | font-weight: bold |
|
268 | font-weight: bold |
|
270 |
|
269 | ||
|
271 | &.message div.stat |
|
270 | &.message div.stat |
|
272 | font-size: 10px |
|
271 | font-size: 10px |
|
273 | line-height: 1.75em |
|
272 | line-height: 1.75em |
|
274 | padding: 0 5px |
|
273 | padding: 0 5px |
|
275 | color: #444444 |
|
274 | color: #444444 |
|
276 | background: #bbbbbb |
|
275 | background: #bbbbbb |
|
277 | font-weight: bold |
|
276 | font-weight: bold |
|
278 |
|
277 | ||
|
279 | &.contest-title |
|
278 | &.contest-title |
|
280 | color: white |
|
279 | color: white |
|
281 | text-align: center |
|
280 | text-align: center |
|
282 | line-height: 2em |
|
281 | line-height: 2em |
|
283 |
|
282 | ||
|
284 | &.registration-desc, &.test-desc |
|
283 | &.registration-desc, &.test-desc |
|
285 | border: 1px dotted gray |
|
284 | border: 1px dotted gray |
|
286 | background: #f5f5f5 |
|
285 | background: #f5f5f5 |
|
287 | padding: 5px |
|
286 | padding: 5px |
|
288 | margin: 10px 0 |
|
287 | margin: 10px 0 |
|
289 | font-size: 12px |
|
288 | font-size: 12px |
|
290 | line-height: 1.5em |
|
289 | line-height: 1.5em |
|
|
290 | + | ||
|
|
291 | + h2.contest-title | ||
|
|
292 | + margin-top: 5px | ||
|
|
293 | + margin-bottom: 5px No newline at end of file |
You need to be logged in to leave comments.
Login now