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
@@ -139,117 +139,119 | |||||
|
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' |
@@ -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' |
@@ -115,123 +115,128 | |||||
|
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; } |
@@ -149,142 +149,145 | |||||
|
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