tournament 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +15 -0
- data/Manifest.txt +241 -2
- data/README.txt +152 -12
- data/Rakefile +9 -6
- data/bin/benchmark_pool +0 -0
- data/bin/gui.rb +3 -1
- data/bin/picker +0 -0
- data/bin/pool +139 -15
- data/lib/tournament/bracket.rb +33 -50
- data/lib/tournament/entry.rb +3 -0
- data/lib/tournament/pool.rb +144 -93
- data/lib/tournament/scoring_strategy.rb +69 -0
- data/lib/tournament/webgui_installer.rb +109 -0
- data/tasks/ann.rake +19 -14
- data/tasks/bones.rake +6 -25
- data/tasks/gem.rake +46 -36
- data/tasks/git.rake +41 -0
- data/tasks/jamis.rb +589 -0
- data/tasks/notes.rake +28 -0
- data/tasks/post_load.rake +18 -11
- data/tasks/{doc.rake → rdoc.rake} +12 -9
- data/tasks/rubyforge.rake +12 -12
- data/tasks/setup.rb +121 -80
- data/tasks/spec.rake +12 -13
- data/tasks/svn.rake +15 -11
- data/tasks/test.rake +6 -6
- data/test/test_tournament.rb +8 -0
- data/test/test_webgui_installer.rb +64 -0
- data/webgui/README +256 -0
- data/webgui/Rakefile +10 -0
- data/webgui/app/controllers/admin_controller.rb +61 -0
- data/webgui/app/controllers/application.rb +25 -0
- data/webgui/app/controllers/entry_controller.rb +97 -0
- data/webgui/app/controllers/pool_controller.rb +4 -0
- data/webgui/app/controllers/reports_controller.rb +7 -0
- data/webgui/app/controllers/sessions_controller.rb +43 -0
- data/webgui/app/controllers/teams_controller.rb +75 -0
- data/webgui/app/controllers/users_controller.rb +57 -0
- data/webgui/app/helpers/admin_helper.rb +2 -0
- data/webgui/app/helpers/application_helper.rb +3 -0
- data/webgui/app/helpers/entry_helper.rb +2 -0
- data/webgui/app/helpers/pool_helper.rb +2 -0
- data/webgui/app/helpers/reports_helper.rb +2 -0
- data/webgui/app/helpers/sessions_helper.rb +2 -0
- data/webgui/app/helpers/teams_helper.rb +2 -0
- data/webgui/app/helpers/users_helper.rb +93 -0
- data/webgui/app/models/entry.rb +42 -0
- data/webgui/app/models/pool.rb +141 -0
- data/webgui/app/models/region.rb +3 -0
- data/webgui/app/models/role.rb +4 -0
- data/webgui/app/models/seeding.rb +4 -0
- data/webgui/app/models/team.rb +6 -0
- data/webgui/app/models/user.rb +98 -0
- data/webgui/app/models/user_mailer.rb +25 -0
- data/webgui/app/views/admin/bracket.html.erb +3 -0
- data/webgui/app/views/admin/entries.html.erb +25 -0
- data/webgui/app/views/admin/index.html.erb +17 -0
- data/webgui/app/views/admin/pool.html.erb +53 -0
- data/webgui/app/views/entry/index.html.erb +16 -0
- data/webgui/app/views/entry/print.erb +1 -0
- data/webgui/app/views/entry/print.html.erb +1 -0
- data/webgui/app/views/entry/show.html.erb +1 -0
- data/webgui/app/views/layouts/bracket.html.erb +37 -0
- data/webgui/app/views/layouts/default.html.erb +62 -0
- data/webgui/app/views/layouts/print.html.erb +12 -0
- data/webgui/app/views/layouts/report.html.erb +38 -0
- data/webgui/app/views/pool/index.html.erb +36 -0
- data/webgui/app/views/reports/_report.html.erb +11 -0
- data/webgui/app/views/reports/show.html.erb +12 -0
- data/webgui/app/views/sessions/new.html.erb +21 -0
- data/webgui/app/views/shared/_admins.html.erb +8 -0
- data/webgui/app/views/shared/_bracket.html.erb +1296 -0
- data/webgui/app/views/teams/choose.html.erb +57 -0
- data/webgui/app/views/user_mailer/activation.erb +3 -0
- data/webgui/app/views/user_mailer/signup_notification.erb +8 -0
- data/webgui/app/views/users/_user_bar.html.erb +8 -0
- data/webgui/app/views/users/new.html.erb +19 -0
- data/webgui/config/boot.rb +109 -0
- data/webgui/config/database.yml +22 -0
- data/webgui/config/environment.rb +78 -0
- data/webgui/config/environments/development.rb +29 -0
- data/webgui/config/environments/production.rb +24 -0
- data/webgui/config/environments/test.rb +22 -0
- data/webgui/config/initializers/inflections.rb +10 -0
- data/webgui/config/initializers/mime_types.rb +5 -0
- data/webgui/config/initializers/new_rails_defaults.rb +17 -0
- data/webgui/config/initializers/pool.rb +33 -0
- data/webgui/config/initializers/site_keys.rb +38 -0
- data/webgui/config/locales/en.yml +5 -0
- data/webgui/config/routes.rb +56 -0
- data/webgui/db/development.sqlite3 +0 -0
- data/webgui/db/migrate/20090216015836_create_entries.rb +13 -0
- data/webgui/db/migrate/20090217001611_add_tie_break_to_entry.rb +9 -0
- data/webgui/db/migrate/20090217004039_create_users.rb +23 -0
- data/webgui/db/migrate/20090217014940_relate_entry_and_user.rb +10 -0
- data/webgui/db/migrate/20090218024350_create_roles.rb +17 -0
- data/webgui/db/migrate/20090218024657_add_postition_to_roles.rb +9 -0
- data/webgui/db/migrate/20090218025240_add_admin_role.rb +10 -0
- data/webgui/db/migrate/20090225022928_create_pools.rb +16 -0
- data/webgui/db/migrate/20090225030346_associate_pool_and_entry.rb +9 -0
- data/webgui/db/migrate/20090225072358_change_pool_data_column.rb +9 -0
- data/webgui/db/migrate/20090225072849_add_completed_to_entries.rb +9 -0
- data/webgui/db/migrate/20090225074149_add_pool_id_index_to_entries.rb +9 -0
- data/webgui/db/migrate/20090225084414_add_user_id_to_pool.rb +9 -0
- data/webgui/db/migrate/20090226021913_add_active_to_pools.rb +9 -0
- data/webgui/db/migrate/20090226142240_rename_bracket_column_to_data.rb +9 -0
- data/webgui/db/migrate/20090301014710_create_teams.rb +84 -0
- data/webgui/db/migrate/20090301025902_add_more_teams.rb +16 -0
- data/webgui/db/migrate/20090301041526_create_seedings.rb +16 -0
- data/webgui/db/migrate/20090301090511_create_regions.rb +14 -0
- data/webgui/db/migrate/teams.txt +347 -0
- data/webgui/db/pool.yml +408 -0
- data/webgui/db/schema.rb +91 -0
- data/webgui/db/test.sqlite3 +0 -0
- data/webgui/doc/README_FOR_APP +5 -0
- data/webgui/lib/authenticated_system.rb +189 -0
- data/webgui/lib/authenticated_test_helper.rb +11 -0
- data/webgui/lib/form_object.rb +70 -0
- data/webgui/lib/pdf_helper.rb +47 -0
- data/webgui/lib/prince.rb +74 -0
- data/webgui/lib/saves_picks.rb +23 -0
- data/webgui/lib/tasks/admin.rake +10 -0
- data/webgui/public/404.html +30 -0
- data/webgui/public/422.html +30 -0
- data/webgui/public/500.html +33 -0
- data/webgui/public/dispatch.cgi +10 -0
- data/webgui/public/dispatch.fcgi +24 -0
- data/webgui/public/dispatch.rb +10 -0
- data/webgui/public/favicon.ico +0 -0
- data/webgui/public/images/2009FinalFour.png +0 -0
- data/webgui/public/images/rails.png +0 -0
- data/webgui/public/javascripts/application.js +2 -0
- data/webgui/public/javascripts/bracket.js +73 -0
- data/webgui/public/javascripts/controls.js +963 -0
- data/webgui/public/javascripts/dragdrop.js +973 -0
- data/webgui/public/javascripts/effects.js +1128 -0
- data/webgui/public/javascripts/prototype.js +4320 -0
- data/webgui/public/robots.txt +5 -0
- data/webgui/public/stylesheets/bracket-print.css +39 -0
- data/webgui/public/stylesheets/bracket.css +125 -0
- data/webgui/public/stylesheets/main.css +144 -0
- data/webgui/public/stylesheets/prince.css +6 -0
- data/webgui/public/stylesheets/prince_landscape.css +1 -0
- data/webgui/script/about +4 -0
- data/webgui/script/console +3 -0
- data/webgui/script/dbconsole +3 -0
- data/webgui/script/destroy +3 -0
- data/webgui/script/generate +3 -0
- data/webgui/script/performance/benchmarker +3 -0
- data/webgui/script/performance/profiler +3 -0
- data/webgui/script/performance/request +3 -0
- data/webgui/script/plugin +3 -0
- data/webgui/script/process/inspector +3 -0
- data/webgui/script/process/reaper +3 -0
- data/webgui/script/process/spawner +3 -0
- data/webgui/script/runner +3 -0
- data/webgui/script/server +3 -0
- data/webgui/test/fixtures/entries.yml +10 -0
- data/webgui/test/fixtures/pools.yml +14 -0
- data/webgui/test/fixtures/regions.yml +11 -0
- data/webgui/test/fixtures/roles.yml +11 -0
- data/webgui/test/fixtures/roles_users.yml +3 -0
- data/webgui/test/fixtures/seedings.yml +12 -0
- data/webgui/test/fixtures/teams.yml +3051 -0
- data/webgui/test/fixtures/users.yml +44 -0
- data/webgui/test/functional/admin_controller_test.rb +8 -0
- data/webgui/test/functional/entry_controller_test.rb +27 -0
- data/webgui/test/functional/pool_controller_test.rb +8 -0
- data/webgui/test/functional/reports_controller_test.rb +8 -0
- data/webgui/test/functional/sessions_controller_test.rb +82 -0
- data/webgui/test/functional/teams_controller_test.rb +216 -0
- data/webgui/test/functional/users_controller_test.rb +88 -0
- data/webgui/test/performance/browsing_test.rb +9 -0
- data/webgui/test/test_helper.rb +38 -0
- data/webgui/test/unit/entry_test.rb +8 -0
- data/webgui/test/unit/pool_test.rb +8 -0
- data/webgui/test/unit/region_test.rb +8 -0
- data/webgui/test/unit/role_test.rb +8 -0
- data/webgui/test/unit/seeding_test.rb +8 -0
- data/webgui/test/unit/team_test.rb +10 -0
- data/webgui/test/unit/user_mailer_test.rb +31 -0
- data/webgui/test/unit/user_test.rb +109 -0
- data/webgui/vendor/plugins/auto_complete/README +23 -0
- data/webgui/vendor/plugins/auto_complete/Rakefile +22 -0
- data/webgui/vendor/plugins/auto_complete/init.rb +2 -0
- data/webgui/vendor/plugins/auto_complete/lib/auto_complete.rb +47 -0
- data/webgui/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb +143 -0
- data/webgui/vendor/plugins/auto_complete/test/auto_complete_test.rb +67 -0
- data/webgui/vendor/plugins/enumerations_mixin/ATTENTION +15 -0
- data/webgui/vendor/plugins/enumerations_mixin/LICENSE +20 -0
- data/webgui/vendor/plugins/enumerations_mixin/README_ENUMERATIONS +163 -0
- data/webgui/vendor/plugins/enumerations_mixin/init.rb +21 -0
- data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/acts/enumerated.rb +177 -0
- data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/aggregations/has_enumerated.rb +60 -0
- data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/virtual_enumerations.rb +68 -0
- data/webgui/vendor/plugins/enumerations_mixin/virtual_enumerations_sample.rb +76 -0
- data/webgui/vendor/plugins/restful_authentication/.gitignore +21 -0
- data/webgui/vendor/plugins/restful_authentication/CHANGELOG +68 -0
- data/webgui/vendor/plugins/restful_authentication/README.textile +224 -0
- data/webgui/vendor/plugins/restful_authentication/Rakefile +32 -0
- data/webgui/vendor/plugins/restful_authentication/TODO +15 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/USAGE +1 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/authenticated_generator.rb +478 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/lib/insert_routes.rb +54 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/_model_partial.html.erb +8 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/activation.erb +3 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_system.rb +189 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_test_helper.rb +22 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/controller.rb +43 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/helper.rb +2 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/login.html.erb +16 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/mailer.rb +25 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/migration.rb +26 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model.rb +83 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_controller.rb +85 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper.rb +93 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper_spec.rb +158 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb +11 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/signup.html.erb +19 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/signup_notification.erb +8 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/site_keys.rb +38 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/access_control_spec.rb +90 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb +102 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/sessions_controller_spec.rb +139 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/users_controller_spec.rb +198 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/fixtures/users.yml +60 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/helpers/users_helper_spec.rb +141 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/models/user_spec.rb +290 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb +22 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories_helper.rb +81 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_navigation_steps.rb +49 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_resource_steps.rb +179 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_response_steps.rb +171 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/user_steps.rb +153 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/users/accounts.story +186 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/users/sessions.story +134 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/functional_test.rb +82 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb +31 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/model_functional_test.rb +93 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/unit_test.rb +164 -0
- data/webgui/vendor/plugins/restful_authentication/init.rb +1 -0
- data/webgui/vendor/plugins/restful_authentication/install.rb +1 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authentication/by_cookie_token.rb +82 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authentication/by_password.rb +64 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authentication.rb +40 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authorization/aasm_roles.rb +63 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb +62 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authorization.rb +14 -0
- data/webgui/vendor/plugins/restful_authentication/lib/trustification/email_validation.rb +20 -0
- data/webgui/vendor/plugins/restful_authentication/lib/trustification.rb +14 -0
- data/webgui/vendor/plugins/restful_authentication/notes/AccessControl.txt +2 -0
- data/webgui/vendor/plugins/restful_authentication/notes/Authentication.txt +5 -0
- data/webgui/vendor/plugins/restful_authentication/notes/Authorization.txt +154 -0
- data/webgui/vendor/plugins/restful_authentication/notes/RailsPlugins.txt +78 -0
- data/webgui/vendor/plugins/restful_authentication/notes/SecurityFramework.graffle +0 -0
- data/webgui/vendor/plugins/restful_authentication/notes/SecurityFramework.png +0 -0
- data/webgui/vendor/plugins/restful_authentication/notes/SecurityPatterns.txt +163 -0
- data/webgui/vendor/plugins/restful_authentication/notes/Tradeoffs.txt +126 -0
- data/webgui/vendor/plugins/restful_authentication/notes/Trustification.txt +49 -0
- data/webgui/vendor/plugins/restful_authentication/rails/init.rb +3 -0
- data/webgui/vendor/plugins/restful_authentication/restful-authentication.gemspec +33 -0
- data/webgui/vendor/plugins/restful_authentication/tasks/auth.rake +33 -0
- metadata +288 -8
- data/tasks/annotations.rake +0 -22
@@ -0,0 +1,39 @@
|
|
1
|
+
TABLE.bracket TH.header
|
2
|
+
{
|
3
|
+
font: italic small-caps bold 10px/14px "arial black";
|
4
|
+
}
|
5
|
+
|
6
|
+
TABLE.bracket TH.subheader
|
7
|
+
{
|
8
|
+
font: italic small-caps bold 7px/7px "arial black";
|
9
|
+
}
|
10
|
+
|
11
|
+
TABLE.bracket TD
|
12
|
+
{
|
13
|
+
font:7px "arial";
|
14
|
+
}
|
15
|
+
|
16
|
+
TABLE.bracket TD.oddChampion
|
17
|
+
{
|
18
|
+
font: bold 7px "arial";
|
19
|
+
}
|
20
|
+
|
21
|
+
.teamname
|
22
|
+
{
|
23
|
+
font-size : 7px;
|
24
|
+
}
|
25
|
+
|
26
|
+
.missedpick
|
27
|
+
{
|
28
|
+
font-size : 7px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.correctpick
|
32
|
+
{
|
33
|
+
font-size : 7px;
|
34
|
+
}
|
35
|
+
|
36
|
+
.pendingpick
|
37
|
+
{
|
38
|
+
font-size : 7px;
|
39
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
TABLE.bracket
|
2
|
+
{
|
3
|
+
BORDER-RIGHT: black 1px solid;
|
4
|
+
BORDER-TOP: black 1px solid;
|
5
|
+
BORDER-LEFT: black 1px solid;
|
6
|
+
BORDER-BOTTOM: black 1px solid;
|
7
|
+
background: white url(../images/2009FinalFour.png) center no-repeat;
|
8
|
+
}
|
9
|
+
|
10
|
+
TABLE.bracket TH.header
|
11
|
+
{
|
12
|
+
font: italic small-caps bold 14px/17px "arial black";
|
13
|
+
color: white;
|
14
|
+
background-color: red;
|
15
|
+
text-align: center;
|
16
|
+
}
|
17
|
+
|
18
|
+
TABLE.bracket TH.subheader
|
19
|
+
{
|
20
|
+
font: italic small-caps bold 5px/7px "arial black";
|
21
|
+
color: red;
|
22
|
+
background-color: #FFFFCC;
|
23
|
+
BORDER-BOTTOM: black 2px double;
|
24
|
+
}
|
25
|
+
|
26
|
+
TABLE.bracket TD
|
27
|
+
{
|
28
|
+
width: 150px;
|
29
|
+
text-align: left;
|
30
|
+
valign: bottom;
|
31
|
+
font:9px "arial";
|
32
|
+
}
|
33
|
+
|
34
|
+
TABLE.bracket TD.space
|
35
|
+
{
|
36
|
+
font: 1px;
|
37
|
+
}
|
38
|
+
|
39
|
+
TABLE.bracket TD.odd
|
40
|
+
{
|
41
|
+
BORDER-BOTTOM: black 1px solid
|
42
|
+
}
|
43
|
+
|
44
|
+
TABLE.bracket TD.oddChampion
|
45
|
+
{
|
46
|
+
BORDER-BOTTOM: black 3px double;
|
47
|
+
font: bold 10px "arial";
|
48
|
+
text-align: center;
|
49
|
+
}
|
50
|
+
|
51
|
+
TABLE.bracket TD.championLabel
|
52
|
+
{
|
53
|
+
text-align: center;
|
54
|
+
}
|
55
|
+
|
56
|
+
TABLE.bracket TD.evenLeft
|
57
|
+
{
|
58
|
+
BORDER-RIGHT: black 1px solid;
|
59
|
+
BORDER-BOTTOM: black 1px solid
|
60
|
+
}
|
61
|
+
|
62
|
+
TABLE.bracket TD.middleLeft
|
63
|
+
{
|
64
|
+
BORDER-RIGHT: black 1px solid
|
65
|
+
}
|
66
|
+
|
67
|
+
TABLE.bracket TD.evenRight
|
68
|
+
{
|
69
|
+
BORDER-LEFT: black 1px solid;
|
70
|
+
BORDER-BOTTOM: black 1px solid;
|
71
|
+
}
|
72
|
+
|
73
|
+
TABLE.bracket TD.middleRight
|
74
|
+
{
|
75
|
+
BORDER-LEFT: black 1px solid
|
76
|
+
}
|
77
|
+
|
78
|
+
.brackcell_top
|
79
|
+
{
|
80
|
+
border-bottom: 1px solid #191970;
|
81
|
+
}
|
82
|
+
|
83
|
+
.bracketcell_bottom_left
|
84
|
+
{
|
85
|
+
border-right: 1px solid #191970;
|
86
|
+
border-bottom: 1px solid #191970;
|
87
|
+
}
|
88
|
+
|
89
|
+
.bracketcell_bottom_right
|
90
|
+
{
|
91
|
+
border-right: 1px solid #191970;
|
92
|
+
border-bottom: 1px solid #191970;
|
93
|
+
}
|
94
|
+
|
95
|
+
.teamname
|
96
|
+
{
|
97
|
+
font-size : 10px;
|
98
|
+
font-family : Arial, Helvetica, sans-serif;
|
99
|
+
font-weight : bold;
|
100
|
+
cursor: pointer;
|
101
|
+
}
|
102
|
+
|
103
|
+
.missedpick
|
104
|
+
{
|
105
|
+
font-size : 10px;
|
106
|
+
font-family : Arial, Helvetica, sans-serif;
|
107
|
+
font-weight : bold;
|
108
|
+
text-decoration : line-through;
|
109
|
+
color : red;
|
110
|
+
}
|
111
|
+
|
112
|
+
.correctpick
|
113
|
+
{
|
114
|
+
font-size : 10px;
|
115
|
+
font-family : Arial, Helvetica, sans-serif;
|
116
|
+
font-weight : bold;
|
117
|
+
color : green;
|
118
|
+
}
|
119
|
+
|
120
|
+
.pendingpick
|
121
|
+
{
|
122
|
+
font-size : 10px;
|
123
|
+
font-family : Arial, Helvetica, sans-serif;
|
124
|
+
color : gray;
|
125
|
+
}
|
@@ -0,0 +1,144 @@
|
|
1
|
+
body, html {
|
2
|
+
margin:0;
|
3
|
+
padding:0;
|
4
|
+
color:#000;
|
5
|
+
font-family: sans-serif;
|
6
|
+
}
|
7
|
+
body {
|
8
|
+
min-width:700px;
|
9
|
+
}
|
10
|
+
h1 {
|
11
|
+
font-size: 24px;
|
12
|
+
color: gray;
|
13
|
+
}
|
14
|
+
#wrap {
|
15
|
+
margin:0 auto;
|
16
|
+
width:auto;
|
17
|
+
}
|
18
|
+
#messages {
|
19
|
+
background:#ddd;
|
20
|
+
}
|
21
|
+
#messages h1 {
|
22
|
+
padding: 5px;
|
23
|
+
margin: 0;
|
24
|
+
}
|
25
|
+
#nav {
|
26
|
+
background:#c99;
|
27
|
+
padding: 5px;
|
28
|
+
}
|
29
|
+
#nav ul {
|
30
|
+
margin: 0;
|
31
|
+
padding: 0;
|
32
|
+
list-style: none;
|
33
|
+
}
|
34
|
+
#nav li {
|
35
|
+
display: inline;
|
36
|
+
margin: 0;
|
37
|
+
padding: 0;
|
38
|
+
}
|
39
|
+
#main {
|
40
|
+
float: left;
|
41
|
+
width: 70%;
|
42
|
+
}
|
43
|
+
#main h2, #main h3, #main p {
|
44
|
+
padding: 0 10px;
|
45
|
+
}
|
46
|
+
#sidebar {
|
47
|
+
float: right;
|
48
|
+
width: 30%;
|
49
|
+
height: 400px;
|
50
|
+
}
|
51
|
+
#sidebar ul {
|
52
|
+
margin-bottom: 0;
|
53
|
+
}
|
54
|
+
#sidebar h3, #sidebar p {
|
55
|
+
padding: 0 10px;
|
56
|
+
}
|
57
|
+
#footer {
|
58
|
+
background:#cc9;
|
59
|
+
clear: both;
|
60
|
+
}
|
61
|
+
#footer p {
|
62
|
+
padding: 5px;
|
63
|
+
margin: 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
/* Errors */
|
67
|
+
.fieldWithErrors {
|
68
|
+
padding: 2px;
|
69
|
+
background-color: red;
|
70
|
+
display: table;
|
71
|
+
}
|
72
|
+
|
73
|
+
#ErrorExplanation {
|
74
|
+
width: 400px;
|
75
|
+
border: 2px solid #red;
|
76
|
+
padding: 7px;
|
77
|
+
padding-bottom: 12px;
|
78
|
+
margin-bottom: 20px;
|
79
|
+
background-color: #f0f0f0;
|
80
|
+
}
|
81
|
+
|
82
|
+
#ErrorExplanation h2 {
|
83
|
+
text-align: left;
|
84
|
+
font-weight: bold;
|
85
|
+
padding: 5px 5px 5px 15px;
|
86
|
+
font-size: 12px;
|
87
|
+
margin: -7px;
|
88
|
+
background-color: #c00;
|
89
|
+
color: #fff;
|
90
|
+
}
|
91
|
+
|
92
|
+
#ErrorExplanation p {
|
93
|
+
color: #333;
|
94
|
+
margin-bottom: 0;
|
95
|
+
padding: 5px;
|
96
|
+
}
|
97
|
+
|
98
|
+
#ErrorExplanation ul li {
|
99
|
+
font-size: 12px;
|
100
|
+
list-style: square;
|
101
|
+
}
|
102
|
+
|
103
|
+
.entryCompleted {
|
104
|
+
color: green;
|
105
|
+
font-size: 8px;
|
106
|
+
}
|
107
|
+
.entryPending {
|
108
|
+
color: red;
|
109
|
+
font-size: 8px;
|
110
|
+
}
|
111
|
+
.entryTableHead {
|
112
|
+
background: lightblue;
|
113
|
+
}
|
114
|
+
.entryTableOdd {
|
115
|
+
background: lightgray;
|
116
|
+
}
|
117
|
+
.entryTableEven {
|
118
|
+
background: pink;
|
119
|
+
}
|
120
|
+
|
121
|
+
div.auto_complete {
|
122
|
+
width: 350px;
|
123
|
+
background: #fff;
|
124
|
+
}
|
125
|
+
div.auto_complete ul {
|
126
|
+
border:1px solid #888;
|
127
|
+
margin:0;
|
128
|
+
padding:0;
|
129
|
+
width:100%;
|
130
|
+
list-style-type:none;
|
131
|
+
}
|
132
|
+
div.auto_complete ul li {
|
133
|
+
margin:0;
|
134
|
+
padding:3px;
|
135
|
+
}
|
136
|
+
div.auto_complete ul li.selected {
|
137
|
+
background-color: #ffb;
|
138
|
+
}
|
139
|
+
div.auto_complete ul strong.highlight {
|
140
|
+
color: #800;
|
141
|
+
margin:0;
|
142
|
+
padding:0;
|
143
|
+
}
|
144
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
@page { size: Letter landscape }
|
data/webgui/script/about
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
one:
|
3
|
+
id: 1
|
4
|
+
name: Test Pool 1
|
5
|
+
data:
|
6
|
+
started: false
|
7
|
+
starts_at: 2009-02-24 18:29:26
|
8
|
+
|
9
|
+
two:
|
10
|
+
id: 2
|
11
|
+
name: Test Pool 2
|
12
|
+
data:
|
13
|
+
started: false
|
14
|
+
starts_at: <%= Time.now + 5.days %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
<% 4.times do |region| %>
|
3
|
+
<% 16.times do |seed| %>
|
4
|
+
<% team = region * 16 + seed + 1 %>
|
5
|
+
region<%=region%>seed<%=seed%>:
|
6
|
+
id: <%= team %>
|
7
|
+
pool_id: 2
|
8
|
+
team_id: <%=team%>
|
9
|
+
region: Region<%=region%>
|
10
|
+
seed: <%=seed+1%>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|