Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial

  • Loading branch information...
commit bcc00a3db30fcd26bcb6180166fdd412b8d1b255 0 parents
@janxious authored
Showing with 3,045 additions and 0 deletions.
  1. +36 −0 .gitignore
  2. +1 −0  .rvmrc
  3. +39 −0 Gemfile
  4. +103 −0 Gemfile.lock
  5. +256 −0 README
  6. +7 −0 Rakefile
  7. +3 −0  app/controllers/application_controller.rb
  8. +4 −0 app/controllers/home_controller.rb
  9. +2 −0  app/helpers/application_helper.rb
  10. +8 −0 app/stylesheets/handheld.scss
  11. +23 −0 app/stylesheets/partials/_base.scss
  12. +60 −0 app/stylesheets/partials/_example.scss
  13. +4 −0 app/stylesheets/partials/_fonts.scss
  14. +21 −0 app/stylesheets/partials/_media.scss
  15. +47 −0 app/stylesheets/partials/_page.scss
  16. +680 −0 app/stylesheets/pretty.sass
  17. +32 −0 app/stylesheets/style.scss
  18. +1 −0  app/views/home/index.html.haml
  19. +4 −0 app/views/layouts/_flashes.html.haml
  20. +3 −0  app/views/layouts/_footer.html.haml
  21. +27 −0 app/views/layouts/_head.html.haml
  22. +14 −0 app/views/layouts/_header.html.haml
  23. +35 −0 app/views/layouts/_javascripts.html.haml
  24. +8 −0 app/views/layouts/_stylesheets.html.haml
  25. +19 −0 app/views/layouts/application.html.haml
  26. +16 −0 bin/compass
  27. +16 −0 bin/css2sass
  28. +16 −0 bin/erubis
  29. +16 −0 bin/haml
  30. +16 −0 bin/html2haml
  31. +16 −0 bin/minitar
  32. +16 −0 bin/rackup
  33. +16 −0 bin/rails
  34. +16 −0 bin/rake
  35. +16 −0 bin/rake2thor
  36. +16 −0 bin/rdebug
  37. +16 −0 bin/sass
  38. +16 −0 bin/sass-convert
  39. +16 −0 bin/thor
  40. +16 −0 bin/tt
  41. +4 −0 config.ru
  42. +47 −0 config/application.rb
  43. +6 −0 config/boot.rb
  44. +13 −0 config/compass.rb
  45. +22 −0 config/database.yml
  46. +5 −0 config/environment.rb
  47. +26 −0 config/environments/development.rb
  48. +49 −0 config/environments/production.rb
  49. +35 −0 config/environments/test.rb
  50. +22 −0 config/google.yml
  51. +7 −0 config/initializers/backtrace_silencers.rb
  52. +3 −0  config/initializers/compass.rb
  53. +10 −0 config/initializers/inflections.rb
  54. +5 −0 config/initializers/mime_types.rb
  55. +7 −0 config/initializers/secret_token.rb
  56. +8 −0 config/initializers/session_store.rb
  57. +5 −0 config/locales/en.yml
  58. +62 −0 config/routes.rb
  59. +15 −0 db/schema.rb
  60. +7 −0 db/seeds.rb
  61. +2 −0  doc/README_FOR_APP
  62. 0  lib/tasks/.gitkeep
  63. +26 −0 lib/tasks/jquery.rake
  64. +415 −0 public/.htaccess
  65. +22 −0 public/404.html
  66. +26 −0 public/422.html
  67. +26 −0 public/500.html
  68. BIN  public/apple-touch-icon.png
  69. +25 −0 public/crossdomain.xml
  70. BIN  public/favicon.ico
  71. +43 −0 public/humans.txt
  72. BIN  public/images/rails.png
  73. BIN  public/images/web-app-theme/avatar.png
  74. BIN  public/images/web-app-theme/icons/application_edit.png
  75. BIN  public/images/web-app-theme/icons/cross.png
  76. BIN  public/images/web-app-theme/icons/key.png
  77. BIN  public/images/web-app-theme/icons/tick.png
  78. +7 −0 public/javascripts/application.js
  79. +13 −0 public/javascripts/dd_belatedpng.js
  80. +16 −0 public/javascripts/jquery.js
  81. +167 −0 public/javascripts/jquery.min.js
  82. +30 −0 public/javascripts/modernizr.min.js
  83. +11 −0 public/javascripts/plugins.js
  84. +148 −0 public/javascripts/rails.js
  85. +5 −0 public/robots.txt
  86. 0  public/stylesheets/.gitkeep
  87. +6 −0 script/rails
  88. +9 −0 test/performance/browsing_test.rb
  89. +13 −0 test/test_helper.rb
  90. 0  vendor/plugins/.gitkeep
36 .gitignore
@@ -0,0 +1,36 @@
+log/*.log
+log/*.pid
+*~
+db/*.bkp
+coverage
+tmp
+test/log
+log/test
+\#*
+.\#*
+apple_report_*.xls
+.DS_Store
+.svn
+db/deep_test*
+*_flymake.*
+db/*.sqlite3
+public/system
+public/p/*
+config/*.sphinx.conf
+db/*sphinx
+log/*.pid
+log/culerity_page_errors
+public/culerity_page_errors
+public/javascripts/all.js
+public/stylesheets/all.css
+public/images/upload
+public/data
+*.LCK
+.sass-cache
+documents
+public/stylesheets/compiled
+lib/jexcelapi/build/out
+lib/jexcelapi/docs
+vendor/bundle
+.bundle
+public/stylesheets/*.css
1  .rvmrc
@@ -0,0 +1 @@
+ruby-1.9.2-p136@rails3
39 Gemfile
@@ -0,0 +1,39 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.0.4'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
+# gem 'ruby-debug'
+# gem 'ruby-debug19'
+
+# Bundle the extra gems:
+# gem 'bj'
+# gem 'nokogiri'
+# gem 'sqlite3-ruby', :require => 'sqlite3'
+# gem 'aws-s3', :require => 'aws/s3'
+
+# Bundle gems for the local environment. Make sure to
+# put test-only gems in this group so their generators
+# and rake tasks are available in development mode:
+# group :development, :test do
+# gem 'webrat'
+# end
+
+gem 'sqlite3'
+gem 'haml-rails'
+gem 'compass'
+gem 'html5-boilerplate'
+
+group :development, :test do
+ gem 'ruby-debug19'
+ gem 'web-app-theme', '>= 0.6.2'
+end
103 Gemfile.lock
@@ -0,0 +1,103 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.4)
+ actionpack (= 3.0.4)
+ mail (~> 2.2.15)
+ actionpack (3.0.4)
+ activemodel (= 3.0.4)
+ activesupport (= 3.0.4)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.4)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.13)
+ rack-test (~> 0.5.7)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.4)
+ activesupport (= 3.0.4)
+ builder (~> 2.1.2)
+ i18n (~> 0.4)
+ activerecord (3.0.4)
+ activemodel (= 3.0.4)
+ activesupport (= 3.0.4)
+ arel (~> 2.0.2)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.4)
+ activemodel (= 3.0.4)
+ activesupport (= 3.0.4)
+ activesupport (3.0.4)
+ archive-tar-minitar (0.5.2)
+ arel (2.0.8)
+ builder (2.1.2)
+ columnize (0.3.2)
+ compass (0.10.6)
+ haml (>= 3.0.4)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ haml (3.0.25)
+ haml-rails (0.3.4)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ haml (~> 3.0)
+ railties (~> 3.0)
+ html5-boilerplate (0.3.0)
+ compass (>= 0.10.0)
+ i18n (0.5.0)
+ linecache19 (0.5.11)
+ ruby_core_source (>= 0.1.4)
+ mail (2.2.15)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ polyglot (0.3.1)
+ rack (1.2.1)
+ rack-mount (0.6.13)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rails (3.0.4)
+ actionmailer (= 3.0.4)
+ actionpack (= 3.0.4)
+ activerecord (= 3.0.4)
+ activeresource (= 3.0.4)
+ activesupport (= 3.0.4)
+ bundler (~> 1.0)
+ railties (= 3.0.4)
+ railties (3.0.4)
+ actionpack (= 3.0.4)
+ activesupport (= 3.0.4)
+ rake (>= 0.8.7)
+ thor (~> 0.14.4)
+ rake (0.8.7)
+ ruby-debug-base19 (0.11.24)
+ columnize (>= 0.3.1)
+ linecache19 (>= 0.5.11)
+ ruby_core_source (>= 0.1.4)
+ ruby-debug19 (0.11.6)
+ columnize (>= 0.3.1)
+ linecache19 (>= 0.5.11)
+ ruby-debug-base19 (>= 0.11.19)
+ ruby_core_source (0.1.4)
+ archive-tar-minitar (>= 0.5.2)
+ sqlite3 (1.3.3)
+ thor (0.14.6)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.24)
+ web-app-theme (0.6.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ compass
+ haml-rails
+ html5-boilerplate
+ rails (= 3.0.4)
+ ruby-debug19
+ sqlite3
+ web-app-theme (>= 0.6.2)
256 README
@@ -0,0 +1,256 @@
+== Welcome to Rails
+
+Rails is a web-application framework that includes everything needed to create
+database-backed web applications according to the Model-View-Control pattern.
+
+This pattern splits the view (also called the presentation) into "dumb"
+templates that are primarily responsible for inserting pre-built data in between
+HTML tags. The model contains the "smart" domain objects (such as Account,
+Product, Person, Post) that holds all the business logic and knows how to
+persist themselves to a database. The controller handles the incoming requests
+(such as Save New Account, Update Product, Show Post) by manipulating the model
+and directing data to the view.
+
+In Rails, the model is handled by what's called an object-relational mapping
+layer entitled Active Record. This layer allows you to present the data from
+database rows as objects and embellish these data objects with business logic
+methods. You can read more about Active Record in
+link:files/vendor/rails/activerecord/README.html.
+
+The controller and view are handled by the Action Pack, which handles both
+layers by its two parts: Action View and Action Controller. These two layers
+are bundled in a single package due to their heavy interdependence. This is
+unlike the relationship between the Active Record and Action Pack that is much
+more separate. Each of these packages can be used independently outside of
+Rails. You can read more about Action Pack in
+link:files/vendor/rails/actionpack/README.html.
+
+
+== Getting Started
+
+1. At the command prompt, create a new Rails application:
+ <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
+
+2. Change directory to <tt>myapp</tt> and start the web server:
+ <tt>cd myapp; rails server</tt> (run with --help for options)
+
+3. Go to http://localhost:3000/ and you'll see:
+ "Welcome aboard: You're riding Ruby on Rails!"
+
+4. Follow the guidelines to start developing your application. You can find
+the following resources handy:
+
+* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
+* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
+
+
+== Debugging Rails
+
+Sometimes your application goes wrong. Fortunately there are a lot of tools that
+will help you debug it and get it back on the rails.
+
+First area to check is the application log files. Have "tail -f" commands
+running on the server.log and development.log. Rails will automatically display
+debugging and runtime information to these files. Debugging info will also be
+shown in the browser on requests from 127.0.0.1.
+
+You can also log your own messages directly into the log file from your code
+using the Ruby logger class from inside your controllers. Example:
+
+ class WeblogController < ActionController::Base
+ def destroy
+ @weblog = Weblog.find(params[:id])
+ @weblog.destroy
+ logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
+ end
+ end
+
+The result will be a message in your log file along the lines of:
+
+ Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
+
+More information on how to use the logger is at http://www.ruby-doc.org/core/
+
+Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
+several books available online as well:
+
+* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
+* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
+
+These two books will bring you up to speed on the Ruby language and also on
+programming in general.
+
+
+== Debugger
+
+Debugger support is available through the debugger command when you start your
+Mongrel or WEBrick server with --debugger. This means that you can break out of
+execution at any point in the code, investigate and change the model, and then,
+resume execution! You need to install ruby-debug to run the server in debugging
+mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
+
+ class WeblogController < ActionController::Base
+ def index
+ @posts = Post.find(:all)
+ debugger
+ end
+ end
+
+So the controller will accept the action, run the first line, then present you
+with a IRB prompt in the server window. Here you can do things like:
+
+ >> @posts.inspect
+ => "[#<Post:0x14a6be8
+ @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
+ #<Post:0x14a6620
+ @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
+ >> @posts.first.title = "hello from a debugger"
+ => "hello from a debugger"
+
+...and even better, you can examine how your runtime objects actually work:
+
+ >> f = @posts.first
+ => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
+ >> f.
+ Display all 152 possibilities? (y or n)
+
+Finally, when you're ready to resume execution, you can enter "cont".
+
+
+== Console
+
+The console is a Ruby shell, which allows you to interact with your
+application's domain model. Here you'll have all parts of the application
+configured, just like it is when the application is running. You can inspect
+domain models, change values, and save to the database. Starting the script
+without arguments will launch it in the development environment.
+
+To start the console, run <tt>rails console</tt> from the application
+directory.
+
+Options:
+
+* Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
+ made to the database.
+* Passing an environment name as an argument will load the corresponding
+ environment. Example: <tt>rails console production</tt>.
+
+To reload your controllers and models after launching the console run
+<tt>reload!</tt>
+
+More information about irb can be found at:
+link:http://www.rubycentral.com/pickaxe/irb.html
+
+
+== dbconsole
+
+You can go to the command line of your database directly through <tt>rails
+dbconsole</tt>. You would be connected to the database with the credentials
+defined in database.yml. Starting the script without arguments will connect you
+to the development database. Passing an argument will connect you to a different
+database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
+PostgreSQL and SQLite 3.
+
+== Description of Contents
+
+The default directory structure of a generated Ruby on Rails application:
+
+ |-- app
+ | |-- controllers
+ | |-- helpers
+ | |-- mailers
+ | |-- models
+ | `-- views
+ | `-- layouts
+ |-- config
+ | |-- environments
+ | |-- initializers
+ | `-- locales
+ |-- db
+ |-- doc
+ |-- lib
+ | `-- tasks
+ |-- log
+ |-- public
+ | |-- images
+ | |-- javascripts
+ | `-- stylesheets
+ |-- script
+ |-- test
+ | |-- fixtures
+ | |-- functional
+ | |-- integration
+ | |-- performance
+ | `-- unit
+ |-- tmp
+ | |-- cache
+ | |-- pids
+ | |-- sessions
+ | `-- sockets
+ `-- vendor
+ `-- plugins
+
+app
+ Holds all the code that's specific to this particular application.
+
+app/controllers
+ Holds controllers that should be named like weblogs_controller.rb for
+ automated URL mapping. All controllers should descend from
+ ApplicationController which itself descends from ActionController::Base.
+
+app/models
+ Holds models that should be named like post.rb. Models descend from
+ ActiveRecord::Base by default.
+
+app/views
+ Holds the template files for the view that should be named like
+ weblogs/index.html.erb for the WeblogsController#index action. All views use
+ eRuby syntax by default.
+
+app/views/layouts
+ Holds the template files for layouts to be used with views. This models the
+ common header/footer method of wrapping views. In your views, define a layout
+ using the <tt>layout :default</tt> and create a file named default.html.erb.
+ Inside default.html.erb, call <% yield %> to render the view using this
+ layout.
+
+app/helpers
+ Holds view helpers that should be named like weblogs_helper.rb. These are
+ generated for you automatically when using generators for controllers.
+ Helpers can be used to wrap functionality for your views into methods.
+
+config
+ Configuration files for the Rails environment, the routing map, the database,
+ and other dependencies.
+
+db
+ Contains the database schema in schema.rb. db/migrate contains all the
+ sequence of Migrations for your schema.
+
+doc
+ This directory is where your application documentation will be stored when
+ generated using <tt>rake doc:app</tt>
+
+lib
+ Application specific libraries. Basically, any kind of custom code that
+ doesn't belong under controllers, models, or helpers. This directory is in
+ the load path.
+
+public
+ The directory available for the web server. Contains subdirectories for
+ images, stylesheets, and javascripts. Also contains the dispatchers and the
+ default HTML files. This should be set as the DOCUMENT_ROOT of your web
+ server.
+
+script
+ Helper scripts for automation and generation.
+
+test
+ Unit and functional tests along with fixtures. When using the rails generate
+ command, template test files will be generated for you and placed in this
+ directory.
+
+vendor
+ External libraries that the application depends on. Also includes the plugins
+ subdirectory. If the app has frozen rails, those gems also go here, under
+ vendor/rails/. This directory is in the load path.
7 Rakefile
@@ -0,0 +1,7 @@
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+require 'rake'
+
+AdjudicatorsDkp::Application.load_tasks
3  app/controllers/application_controller.rb
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+end
4 app/controllers/home_controller.rb
@@ -0,0 +1,4 @@
+class HomeController < ApplicationController
+ def index
+ end
+end
2  app/helpers/application_helper.rb
@@ -0,0 +1,2 @@
+module ApplicationHelper
+end
8 app/stylesheets/handheld.scss
@@ -0,0 +1,8 @@
+* {
+ float: none; // Screens are not big enough to account for floats
+ background: #fff; // As much contrast as possible */
+ color: #000;
+}
+
+// Slightly reducing font size to reduce need to scroll
+body { font-size: 80%; }
23 app/stylesheets/partials/_base.scss
@@ -0,0 +1,23 @@
+// This file must be imported before loading html5-boilerplate
+
+$base-font-family: unquote('sans-serif'); // default font-family
+
+$base-font-size: 13px; // default font-size for YUI fonts
+
+$base-line-height: 1.231; // default line-height for YUI fonts
+
+$font-color: #444;
+
+$link-color: #607890;
+
+$link-hover-color: #036;
+
+$link-active-color: #607890;
+
+$link-visited-color: #607890;
+
+$selected-font-color: #fff; // color for selected text
+
+$selected-background-color: #ff5E99; // bg-color for selected text
+
+$list-left-margin: 2em; // left margin for ul an ol
60 app/stylesheets/partials/_example.scss
@@ -0,0 +1,60 @@
+//--------------------------------
+// CSS Reset
+//--------------------------------
+@include html5-boilerplate-reset;
+
+
+//--------------------------------
+// Base Fonts
+//--------------------------------
+@include html5-boilerplate-fonts($base-font-family, $base-font-size, $base-line-height);
+
+
+//--------------------------------
+// Minimal Base Styles
+//--------------------------------
+body, select, input, textarea { color: $font-color; }
+
+html { @include force-scrollbar; }
+
+a, a:active, a:visited { color: $link-color; }
+a:hover { color: $link-hover-color; }
+
+ul, ol { margin-left: $list-left-margin; }
+ol { list-style-type: decimal; }
+
+td, td img { vertical-align: top; }
+
+sub { @include sub; }
+
+sup { @include sup; }
+
+@include accessible-focus;
+
+@include quoted-pre;
+
+@include align-input-labels;
+
+@include hand-cursor-inputs;
+
+@include selected-text;
+
+@include webkit-tap-highlight;
+
+@include ie-hacks;
+
+@include no-nav-margins;
+
+
+//--------------------------------
+// Helpers
+//--------------------------------
+.ir { @include image-replacement; }
+
+.hidden { @include hidden; }
+
+.visuallyhidden { @include visually-hidden; }
+
+.clearfix {
+ @include pie-clearfix; // defined by compass core
+}
4 app/stylesheets/partials/_fonts.scss
@@ -0,0 +1,4 @@
+// font-face fonts
+// see http://compass-style.org/docs/reference/compass/css3/font_face/
+
+//@import "compass/css3/font-face"
21 app/stylesheets/partials/_media.scss
@@ -0,0 +1,21 @@
+//
+// These are in their own partial because you probably
+// want to customize on a per-site basis
+//
+
+@media print {
+ @include media-print;
+}
+
+@media all and (orientation:portrait) {
+ // Style adjustments for portrait mode goes here
+}
+
+@media all and (orientation:landscape) {
+ // Style adjustments for landscape mode goes here
+}
+
+@media screen and (max-device-width: 480px) {
+ // Pass in false if you don't want iOS and WinMobile to mobile-optimize the text for you
+ @include media-mobile(true);
+}
47 app/stylesheets/partials/_page.scss
@@ -0,0 +1,47 @@
+@import "compass/css3";
+
+//-----------------------------------------------
+// The following html5-boilerplate styles should
+// probably be customized for each site
+//-----------------------------------------------
+
+h1, h2, h3, h4, h5, h6 {
+ // Bold might not be the best choice if you are
+ // embedding font faces that are already bold
+ font-weight: bold;
+}
+
+strong, th {
+ font-weight: bold;
+}
+
+small {
+ // Use font-size mixin to convert to percentage for YUI
+ // http://developer.yahoo.com/yui/3/cssfonts/#fontsize
+ @include font-size(11px); // approx 85% when base-font-size eq 13px
+}
+
+// Add the 'required' attribute on your
+// inputs if you want to use these
+input:valid, textarea:valid {}
+input:invalid, textarea:invalid {
+ @include border-radius(1px);
+ @include box-shadow(red, 0, 0, 5px, 0);
+}
+.no-boxshadow input:invalid,
+.no-boxshadow textarea:invalid { background-color: #f0dddd; }
+
+
+//-----------------------------------
+// Add your own custom styles below
+//-----------------------------------
+
+body {}
+
+#container {}
+
+header {}
+
+#main {}
+
+footer {}
680 app/stylesheets/pretty.sass
@@ -0,0 +1,680 @@
+*
+ margin: 0
+ padding: 0
+
+.clear
+ clear: both
+ height: 0
+
+.wat-cf
+ &:after
+ content: "."
+ display: block
+ height: 0
+ clear: both
+ visibility: hidden
+ display: inline-block
+
+/* Hides from IE-mac \
+
+* html .wat-cf
+ height: 1%
+
+.wat-cf
+ display: block
+
+/* End hide from IE-mac
+
+h1
+ margin: 15px 0
+ font-size: 22px
+ font-weight: normal
+
+h2
+ font-size: 22px
+ margin: 15px 0
+ font-weight: normal
+
+h3
+ font-size: 18px
+ margin: 10px 0
+ font-weight: normal
+
+h4
+ font-size: 16px
+ margin: 10px 0
+ font-weight: normal
+
+hr
+ height: 1px
+ border: 0
+
+p
+ margin: 15px 0
+
+a img
+ border: none
+
+body
+ font-size: 12px
+ font-family: sans-serif
+
+#container
+ min-width: 960px
+
+#header, #wrapper
+ padding: 0 20px
+
+#header
+ position: relative
+ padding-top: 1px
+ h1
+ margin: 0
+ padding: 10px 0
+ font-size: 26px
+ a
+ &:link, &:active, &:hover, &:visited
+ text-decoration: none
+
+#main
+ width: 70%
+ float: left
+
+.actions-bar
+ padding: 10px 1px
+ .actions
+ float: left
+ .pagination
+ float: right
+ padding: 1px 0
+
+#sidebar
+ width: 25%
+ float: right
+ h3
+ padding: 10px 15px
+ margin: 0
+ font-size: 13px
+ .block
+ margin-bottom: 20px
+ padding-bottom: 10px
+ .content
+ padding: 0 15px
+ ul.navigation li a
+ &:link, &:visited
+ display: block
+ padding: 10px 15px
+ .block .sidebar-block, .notice
+ padding: 10px
+
+#wrapper
+ padding-top: 20px
+
+#main
+ .block
+ margin-bottom: 20px
+ padding-top: 1px
+ .content .inner
+ padding: 0 15px 15px
+ .main p.first
+ margin-top: 0
+
+#user-navigation
+ position: absolute
+ top: 0px
+ right: 20px
+
+#main-navigation
+ width: 100%
+
+#user-navigation ul, #main-navigation ul, .secondary-navigation ul, #sidebar ul.navigation
+ margin: 0
+ padding: 0
+ list-style-type: none
+
+#user-navigation ul li, #main-navigation ul li, .secondary-navigation ul li
+ float: left
+
+#main-navigation ul li
+ margin-right: 5px
+
+#user-navigation ul li
+ padding: 5px 10px
+
+#main-navigation ul li a
+ &:link, &:visited, &:hover, &:active
+ text-decoration: none
+
+.secondary-navigation ul li a
+ &:link, &:visited, &:hover, &:active
+ text-decoration: none
+
+#user-navigation ul li a
+ &:link, &:visited, &:hover, &:active
+ text-decoration: none
+
+#main-navigation ul li a
+ font-size: 14px
+ line-height: 14px
+ display: block
+ padding: 8px 15px
+
+.secondary-navigation
+ font-size: 13px
+ border-bottom-width: 10px
+ border-bottom-style: solid
+ ul li a
+ display: block
+ padding: 10px 15px
+
+#footer
+ padding-bottom: 20px
+
+/* pagination
+
+.pagination
+ a, span
+ padding: 2px 5px
+ margin-right: 5px
+ display: block
+ float: left
+ border-style: solid
+ border-width: 1px
+ em
+ padding: 2px 5px
+ margin-right: 5px
+ display: block
+ float: left
+ border-style: solid
+ border-width: 1px
+ font-weight: bold
+ a
+ text-decoration: none
+
+/* tables
+
+.table
+ width: 100%
+ border-collapse: collapse
+ margin-bottom: 15px
+ th
+ padding: 10px
+ font-weight: bold
+ text-align: left
+ &.first
+ width: 30px
+ &.last
+ width: 200px
+ .checkbox
+ margin-left: 10px
+ td
+ padding: 10px
+ &.last
+ text-align: right
+
+/* forms
+
+input.checkbox
+ margin: 0
+ padding: 0
+
+.form
+ .group
+ margin-bottom: 15px
+ div
+ &.left
+ width: 20%
+ float: left
+ &.right
+ width: 75%
+ float: right
+ .columns
+ .column
+ width: 48%
+ .left
+ float: left
+ .right
+ float: right
+ label.label, input.text_field, textarea.text_area
+ font-size: 1.2em
+ padding: 1px 0
+ margin: 0
+ label.right
+ text-align: right
+ input
+ &.checkbox, &.radio
+ margin-right: 5px
+ label
+ &.checkbox, &.radio
+ line-height: 1.5em
+ &.label
+ display: block
+ padding-bottom: 2px
+ font-weight: bold
+ div.fieldWithErrors label.label
+ display: inline
+ .fieldWithErrors .error
+ color: red
+ input.text_field, textarea.text_area
+ width: 100%
+ border-width: 1px
+ border-style: solid
+
+/* lists
+
+ul.list
+ margin: 0
+ padding: 0
+ list-style-type: none
+ li
+ clear: left
+ padding-bottom: 5px
+ .left
+ float: left
+ .avatar
+ width: 50px
+ height: 50px
+ .item
+ margin-left: 80px
+ .avatar
+ float: left
+ margin: 0 5px 5px 0
+ width: 30px
+ height: 30px
+
+/* box
+
+#box
+ width: 500px
+ margin: 50px auto
+ .block
+ margin-bottom: 20px
+ h2
+ padding: 10px 15px
+ margin: 0
+ .content
+ padding: 10px 20px
+
+/* Inspired by http://particletree.com/features/rediscovering-the-button-element
+
+a.button
+ &:link, &:visited, &:hover, &:active
+ color: #222
+ display: block
+ float: left
+ margin: 0 7px 0 0
+ background-color: #eee
+ border: 1px solid #bfbfbf
+ font-size: 1em
+ line-height: 1.3em
+ font-weight: bold
+ cursor: pointer
+ padding: 5px 10px 6px 7px
+ text-decoration: none
+
+button.button
+ color: #222
+ display: block
+ float: left
+ margin: 0 7px 0 0
+ background-color: #eee
+ border: 1px solid #bfbfbf
+ font-size: 1em
+ line-height: 1.3em
+ font-weight: bold
+ cursor: pointer
+ padding: 5px 10px 6px 7px
+ text-decoration: none
+ width: auto
+ overflow: visible
+ padding: 4px 10px 3px 7px
+ /* IE6
+ &[type]
+ padding: 5px 10px 5px 7px
+ /* Firefox
+ line-height: 17px
+ /* Safari
+
+*:first-child + html button.button[type]
+ padding: 4px 10px 3px 7px
+ /* IE7
+
+button.button img, a.button img
+ margin: 0 3px -3px 0 !important
+ padding: 0
+ border: none
+ width: 16px
+ height: 16px
+
+button.button:hover, a.button:hover
+ background-color: #dedede
+
+button.button:active, a.button:active
+ background-color: #e5e5e5
+
+.text_button_padding
+ color: #222222
+ display: block
+ float: left
+ font-size: 1em
+ line-height: 2em
+ margin: 0 7px 0 0
+ padding: 5px 0 6px 7px
+ text-decoration: none
+
+.link_button
+ cursor: pointer
+
+
+/**
+ * Cerulean web-app-theme made for Djime: http://github.com/mikl/djime/
+ *
+ * Please note that we're using CSSEdit's @group comment syntax.
+ *
+ * Colour sheme:
+ * Cerulean: #007BA7
+ * Bright blue: #01B8DE
+ * Near-white: #F7F7F8
+ * Silver grey: #C2C8D1
+ * Dark blue: #001C26
+ *
+ * http://www.colourlovers.com/palette/646252/Cerulean_touch
+
+/* @group General styles
+
+.small
+ font-size: 11px
+
+.gray
+ color: #999
+
+.hightlight
+ background-color: #ffc
+
+a
+ &:link, &:visited, &:hover, &:active
+ color: #007BA7
+
+h1, h2, h3
+ color: #007BA7
+
+body
+ color: #222
+ background: #C2C8D1
+ font-family: "Helvetica Neue",Helvetica,Arial,"Bitstream Vera Sans",sans-serif
+
+hr
+ background: #EEF0F0
+ color: #EEF0F0
+
+/* @end
+
+/* @group Header
+
+#header
+ background: #007BA7
+ h1
+ padding: 20px 0
+ a
+ &:link, &:active, &:hover, &:visited
+ color: #F7F7F8
+
+/* @end
+
+#user-navigation
+ top: auto
+ bottom: 5px
+ right: 25px
+
+#main .block .content
+ background: #F7F7F8
+ padding-top: 1px
+ h2
+ margin-left: 15px
+
+/* @group Main navigation
+
+#main-navigation
+ ul li
+ padding-left: 0
+ a
+ padding: 8px 0
+ padding: 8px 15px
+ &:hover
+ background-color: #001C26
+ &.active a
+ background-color: #C2C8D1
+ background: -webkit-gradient(linear, left top, left bottom, from(#c2c8d1), to(#c2c8d1), color-stop(0.5, #f7f7f8), color-stop(0.5, #f7f7f8))
+ background-color: #005573
+
+/* @end
+
+/* @group Secondary navigation
+
+.secondary-navigation
+ li a:hover
+ background: #005573
+ background: #007BA7
+ border-bottom-width: 7px
+ border-bottom-color: #005573
+ ul li.active
+ background-color: #005573
+ a:hover
+ background-color: #005573
+
+/* @end
+
+/* @group Sidebar
+
+#sidebar
+ .block
+ background: #F7F7F8
+ h3
+ background: #007BA7
+ color: #F7F7F8
+ border-bottom: 7px solid #005573
+ ul li a
+ &:link, &:visited
+ background: #F7F7F8
+ border-bottom: 1px solid #EEF0F0
+ text-decoration: none
+ &:hover, &:active
+ background: #005573
+ color: #F7F7F8
+
+/* @end
+
+#main-navigation ul li a
+ &:link, &:visited, &:hover, &:active
+ text-decoration: none
+ color: #F7F7F8
+
+.secondary-navigation ul li a
+ &:link, &:visited, &:hover, &:active
+ text-decoration: none
+ color: #F7F7F8
+
+#user-navigation ul li a
+ &:link, &:visited, &:hover, &:active
+ text-decoration: none
+ color: #F7F7F8
+
+#main-navigation ul li.active a
+ &:link, &:visited, &:hover, &:active
+ color: #001C26
+
+#footer .block
+ color: #F7F7F8
+ background: #005573
+ p
+ margin: 0
+ padding: 10px
+
+/* pagination
+
+.pagination
+ em
+ background: #005573
+ color: #F7F7F8
+ border-color: #005573
+ a, span
+ color: #001C26
+ border-color: #005573
+ a:hover
+ color: #F7F7F8
+ background: #005573
+
+/* tables
+
+.table
+ th
+ background: #C2C8D1
+ color: #001C26
+ td
+ border-bottom: 1px solid #EEF0F0
+
+/* forms
+
+.form
+ input.text_field, textarea.text_area
+ width: 100%
+ border: 1px solid #001C26
+ input.button
+ background: #EEE
+ color: #001C26
+ padding: 2px 5px
+ border: 1px solid #001C26
+ cursor: pointer
+ .description
+ color: #8C8C8C
+ font-size: .9em
+
+/* @group Flash messages
+
+.flash
+ .message
+ -moz-border-radius: 3px
+ -webkit-border-radius: 3px
+ text-align: center
+ margin: 0 auto 15px
+ p
+ margin: 8px
+ .error
+ border: 1px solid #fbb
+ background-color: #fdd
+ .warning
+ border: 1px solid #e0d300
+ background-color: #ffffcc
+ .notice
+ border: 1px solid #8ec4df
+ background-color: #dffaff
+
+/* @end
+
+/* lists
+
+ul.list li
+ border-bottom-color: #EEF0F0
+ border-bottom-width: 1px
+ border-bottom-style: solid
+ .item .avatar
+ border-color: #EEF0F0
+ border-width: 1px
+ border-style: solid
+ padding: 2px
+
+/* box
+
+#box .block
+ background: #F7F7F8
+ h2
+ background: #005573
+ color: #F7F7F8
+
+/* rounded borders
+
+#main
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+
+#main-navigation
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+ li
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+ a
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+
+.secondary-navigation, #main .block
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+
+#sidebar
+ .block, h3
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+
+ul.list li, #footer .block, .form input.button
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+
+#box .block
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+ h2
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+
+.secondary-navigation
+ li.first a, ul li.first
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+
+.table th
+ &.first
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+ &.last
+ -moz-border-radius-topright: 4px
+ -webkit-border-top-right-radius: 4px
+
+.secondary-navigation ul li.first
+ -moz-border-radius-topleft: 4px
+ -webkit-border-top-left-radius: 4px
+
+#sidebar
+ -moz-border-radius-bottomleft: 4px
+ -webkit-border-bottom-left-radius: 4px
+ -moz-border-radius-bottomright: 4px
+ -webkit-border-bottom-right-radius: 4px
+ .block
+ -moz-border-radius-bottomleft: 4px
+ -webkit-border-bottom-left-radius: 4px
+ -moz-border-radius-bottomright: 4px
+ -webkit-border-bottom-right-radius: 4px
+
+#main .block, #sidebar ul.navigation, ul.list li, #footer .block, .form input.button, #box .block
+ -moz-border-radius-bottomleft: 4px
+ -webkit-border-bottom-left-radius: 4px
+ -moz-border-radius-bottomright: 4px
+ -webkit-border-bottom-right-radius: 4px
32 app/stylesheets/style.scss
@@ -0,0 +1,32 @@
+// First, set some default constants
+@import "partials/base";
+
+// Then we'll import the compass extension
+@import "html5-boilerplate";
+
+// If you don't require any customization
+// you can choose to include the whole
+// enchilada by uncommeting this line
+//@include html5-boilerplate;
+
+// Or, you can pick and choose only the
+// sections you want to include
+@include html5-boilerplate-reset;
+@include html5-boilerplate-fonts;
+@include html5-boilerplate-styles;
+@include html5-boilerplate-helpers;
+
+// Or else, you can import this partial if you
+// want more control over which mixins to use
+//@import "partials/example";
+
+// Finally, put your own styles in these partials
+// and add more as needed (i.e. forms, tables, nav)
+@import "partials/fonts";
+@import "partials/page";
+
+// Media should come last
+@import "partials/media";
+
+// some good looing stuff
+@import "pretty";
1  app/views/home/index.html.haml
@@ -0,0 +1 @@
+This is a test!
4 app/views/layouts/_flashes.html.haml
@@ -0,0 +1,4 @@
+#flash
+ - flash.each do |key, value|
+ %div{ :title => key.to_s.humanize, :class => key }
+ %p= value
3  app/views/layouts/_footer.html.haml
@@ -0,0 +1,3 @@
+.block
+ %p.copyright
+ Copyright &copy; #{Date.today.year} Throbert
27 app/views/layouts/_head.html.haml
@@ -0,0 +1,27 @@
+%head
+ %meta{ "http-equiv" => "Content-Type", :content => "text/html; charset=UTF-8"}
+
+ -#
+ Always force latest IE rendering engine (even in intranet) & Chrome Frame
+ Remove this if you use the .htaccess
+ %meta{ :content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible" }/
+
+ %title
+ == #{ controller.controller_name.titleize } - #{ controller.action_name.titleize }
+
+ %meta{ :content => "", :name => "description" }/
+ %meta{ :content => "", :name => "author" }/
+
+ -# Mobile viewport optimized: j.mp/bplateviewport
+ %meta{ :content => "width=device-width, initial-scale=1.0", :name => "viewport" }/
+
+ -# Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references
+ -# %link{ :href => "/favicon.ico", :rel => "shortcut icon" }/
+ -# %link{ :href => "/apple-touch-icon.png", :rel => "apple-touch-icon" }/
+
+ = render :partial => 'layouts/stylesheets'
+
+ -# All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects
+ = javascript_include_tag 'modernizr.min'
+
+ = csrf_meta_tag
14 app/views/layouts/_header.html.haml
@@ -0,0 +1,14 @@
+%h1
+ = link_to "Adjudicators DKP", [:root]
+
+#user-navigation
+ %ul#wat-cf
+ %li
+ %a{:href => "#"}= t("web-app-theme.profile", :default => "Profile")
+ %li
+ %a{:href => "#"}= t("web-app-theme.settings", :default => "Settings")
+ %li
+ %a{:href => "/logout", :class => "logout"}= t("web-app-theme.logout", :default => "Logout")
+
+#main-navigation
+ %ul#wat-cf
35 app/views/layouts/_javascripts.html.haml
@@ -0,0 +1,35 @@
+-# Grab Google CDN's jQuery
+-# Looks for google_api_key first in ENV['GOOGLE_API_KEY'] then in config/google.yml
+- if !google_api_key.blank?
+ = javascript_include_tag "//www.google.com/jsapi?key=#{google_api_key}"
+ :javascript
+ google.load("jquery", "1.5.0");
+- else
+ = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"
+
+-# fall back to local jQuery if necessary
+:javascript
+ !window.jQuery && document.write(unescape('%3Cscript src="/javascripts/jquery.min.js"%3E%3C/script%3E'))
+
+= javascript_include_tag 'rails', 'plugins', 'application'
+
+-# Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb
+/[if lt IE 7 ]
+ :javascript
+ //DD_belatedPNG.fix('img, .png_bg');
+
+-# Append your own using content_for :javascripts
+= yield :javascripts
+
+-# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
+-# Looks for google_account_id first in ENV['GOOGLE_ACCOUNT_ID'] then in config/google.yml
+- if !google_account_id.blank?
+ :javascript
+ var _gaq = [['_setAccount', '#{google_account_id}'], ['_trackPageview']];
+ (function(d, t) {
+ var g = d.createElement(t),
+ s = d.getElementsByTagName(t)[0];
+ g.async = true;
+ g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g, s);
+ })(document, 'script');
8 app/views/layouts/_stylesheets.html.haml
@@ -0,0 +1,8 @@
+-# CSS : implied media="all"
+= stylesheet_link_tag 'style', :media => 'all'
+
+-# Uncomment if you are specifically targeting less enabled mobile browsers
+-#= stylesheet_link_tag 'handheld', :media => 'handheld'
+
+-# Append your own using content_for :stylesheets
+= yield :stylesheets
19 app/views/layouts/application.html.haml
@@ -0,0 +1,19 @@
+!!! 5
+-# http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither
+-ie_html :class => 'no-js' do
+ = render :partial => 'layouts/head'
+ %body{ :lang => 'en', :class => "#{controller.controller_name}" }
+ #container
+ %header#header
+ = render :partial => 'layouts/header'
+ #wrapper
+ = render :partial => 'layouts/flashes'
+ #main{ :role => 'main' }
+ = yield
+ %footer#footer
+ = render :partial => 'layouts/footer'
+ #sidebar
+ = yield :sidebar
+
+ -# Javascript at the bottom for fast page loading
+ = render :partial => 'layouts/javascripts'
16 bin/compass
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'compass' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('compass', 'compass')
16 bin/css2sass
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'css2sass' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('haml', 'css2sass')
16 bin/erubis
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'erubis' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('erubis', 'erubis')
16 bin/haml
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'haml' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('haml', 'haml')
16 bin/html2haml
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'html2haml' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('haml', 'html2haml')
16 bin/minitar
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'minitar' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('archive-tar-minitar', 'minitar')
16 bin/rackup
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rackup' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rack', 'rackup')
16 bin/rails
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rails' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rails', 'rails')
16 bin/rake
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rake' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('rake', 'rake')
16 bin/rake2thor
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rake2thor' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('thor', 'rake2thor')
16 bin/rdebug
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'rdebug' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('ruby-debug19', 'rdebug')
16 bin/sass
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'sass' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('haml', 'sass')
16 bin/sass-convert
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'sass-convert' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('haml', 'sass-convert')
16 bin/thor
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'thor' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('thor', 'thor')
16 bin/tt
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+#
+# This file was generated by Bundler.
+#
+# The application 'tt' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require 'pathname'
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require 'rubygems'
+require 'bundler/setup'
+
+load Gem.bin_path('treetop', 'tt')
4 config.ru
@@ -0,0 +1,4 @@
+# This file is used by Rack-based servers to start the application.
+
+require ::File.expand_path('../config/environment', __FILE__)
+run AdjudicatorsDkp::Application
47 config/application.rb
@@ -0,0 +1,47 @@
+require File.expand_path('../boot', __FILE__)
+
+require 'rails/all'
+
+# If you have a Gemfile, require the gems listed there, including any gems
+# you've limited to :test, :development, or :production.
+Bundler.require(:default, Rails.env) if defined?(Bundler)
+
+module AdjudicatorsDkp
+ class Application < Rails::Application
+ # Added by the Rails 3 jQuery Template
+ # http://github.com/lleger/Rails-3-jQuery, written by Logan Leger
+ config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
+ config.action_view.javascript_expansions[:cdn] = %w(https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js rails)
+
+ # Settings in config/environments/* take precedence over those specified here.
+ # Application configuration should go into files in config/initializers
+ # -- all .rb files in that directory are automatically loaded.
+
+ # Custom directories with classes and modules you want to be autoloadable.
+ # config.autoload_paths += %W(#{config.root}/extras)
+
+ # Only load the plugins named here, in the order given (default is alphabetical).
+ # :all can be used as a placeholder for all plugins not explicitly named.
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
+
+ # Activate observers that should always be running.
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
+
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
+ # config.time_zone = 'Central Time (US & Canada)'
+
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
+ # config.i18n.default_locale = :de
+
+ # JavaScript files you want as :defaults (application.js is always included).
+ # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
+
+ # Configure the default encoding used in templates for Ruby 1.9.
+ config.encoding = "utf-8"
+
+ # Configure sensitive parameters which will be filtered from the log file.
+ config.filter_parameters += [:password]
+ end
+end
6 config/boot.rb
@@ -0,0 +1,6 @@
+require 'rubygems'
+
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
+
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
13 config/compass.rb
@@ -0,0 +1,13 @@
+# This configuration file works with both the Compass command line tool and within Rails.
+require 'html5-boilerplate'
+# Require any additional compass plugins here.
+
+project_type = :rails
+project_path = Compass::AppIntegration::Rails.root
+# Set this to the root of your project when deployed:
+http_path = "/"
+css_dir = "public/stylesheets"
+sass_dir = "app/stylesheets"
+environment = Compass::AppIntegration::Rails.env
+# To enable relative paths to assets via compass helper functions. Uncomment:
+# relative_assets = true
22 config/database.yml
@@ -0,0 +1,22 @@
+# SQLite version 3.x
+# gem install sqlite3
+development:
+ adapter: sqlite3
+ database: db/development.sqlite3
+ pool: 5
+ timeout: 5000
+
+# Warning: The database defined as "test" will be erased and
+# re-generated from your development database when you run "rake".
+# Do not set this db to the same as development or production.
+test:
+ adapter: sqlite3
+ database: db/test.sqlite3
+ pool: 5
+ timeout: 5000
+
+production:
+ adapter: sqlite3
+ database: db/production.sqlite3
+ pool: 5
+ timeout: 5000
5 config/environment.rb
@@ -0,0 +1,5 @@
+# Load the rails application
+require File.expand_path('../application', __FILE__)
+
+# Initialize the rails application
+AdjudicatorsDkp::Application.initialize!
26 config/environments/development.rb
@@ -0,0 +1,26 @@
+AdjudicatorsDkp::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # In the development environment your application's code is reloaded on
+ # every request. This slows down response time but is perfect for development
+ # since you don't have to restart the webserver when you make code changes.
+ config.cache_classes = false
+
+ # Log error messages when you accidentally call methods on nil.
+ config.whiny_nils = true
+
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_view.debug_rjs = true
+ config.action_controller.perform_caching = false
+
+ # Don't care if the mailer can't send
+ config.action_mailer.raise_delivery_errors = false
+
+ # Print deprecation notices to the Rails logger
+ config.active_support.deprecation = :log
+
+ # Only use best-standards-support built into browsers
+ config.action_dispatch.best_standards_support = :builtin
+end
+
49 config/environments/production.rb
@@ -0,0 +1,49 @@
+AdjudicatorsDkp::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # The production environment is meant for finished, "live" apps.
+ # Code is not reloaded between requests
+ config.cache_classes = true
+
+ # Full error reports are disabled and caching is turned on
+ config.consider_all_requests_local = false
+ config.action_controller.perform_caching = true
+
+ # Specifies the header that your server uses for sending files
+ config.action_dispatch.x_sendfile_header = "X-Sendfile"
+
+ # For nginx:
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
+
+ # If you have no front-end server that supports something like X-Sendfile,
+ # just comment this out and Rails will serve the files
+
+ # See everything in the log (default is :info)
+ # config.log_level = :debug
+
+ # Use a different logger for distributed setups
+ # config.logger = SyslogLogger.new
+
+ # Use a different cache store in production
+ # config.cache_store = :mem_cache_store
+
+ # Disable Rails's static asset server
+ # In production, Apache or nginx will already do this
+ config.serve_static_assets = false
+
+ # Enable serving of images, stylesheets, and javascripts from an asset server
+ # config.action_controller.asset_host = "http://assets.example.com"
+
+ # Disable delivery errors, bad email addresses will be ignored
+ # config.action_mailer.raise_delivery_errors = false
+
+ # Enable threaded mode
+ # config.threadsafe!
+
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
+ # the I18n.default_locale when a translation can not be found)
+ config.i18n.fallbacks = true
+
+ # Send deprecation notices to registered listeners
+ config.active_support.deprecation = :notify
+end
35 config/environments/test.rb
@@ -0,0 +1,35 @@
+AdjudicatorsDkp::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # The test environment is used exclusively to run your application's
+ # test suite. You never need to work with it otherwise. Remember that
+ # your test database is "scratch space" for the test suite and is wiped
+ # and recreated between test runs. Don't rely on the data there!
+ config.cache_classes = true
+
+ # Log error messages when you accidentally call methods on nil.
+ config.whiny_nils = true
+
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
+
+ # Raise exceptions instead of rendering exception templates
+ config.action_dispatch.show_exceptions = false
+
+ # Disable request forgery protection in test environment
+ config.action_controller.allow_forgery_protection = false
+
+ # Tell Action Mailer not to deliver emails to the real world.
+ # The :test delivery method accumulates sent emails in the
+ # ActionMailer::Base.deliveries array.
+ config.action_mailer.delivery_method = :test
+
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
+ # like if you have constraints or database-specific column types
+ # config.active_record.schema_format = :sql
+
+ # Print deprecation notices to the stderr
+ config.active_support.deprecation = :stderr
+end
22 config/google.yml
@@ -0,0 +1,22 @@
+# Html5BoilerplateHelper will first check your ENV and
+# then this yml file for these values. If they are both
+# empty, the google code block will not be used.
+#
+# e.g. ENV['GOOGLE_ACCOUNT_ID'] || yml[:google_account_id]
+# e.g. ENV['GOOGLE_API_KEY'] || yml[:google_api_key]
+#
+defaults: &defaults
+ :google_account_id: ''
+ :google_api_key: ''
+
+:development:
+ <<: *defaults
+
+:test:
+ <<: *defaults
+
+:staging:
+ <<: *defaults
+
+:production:
+ <<: *defaults
7 config/initializers/backtrace_silencers.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
+
+# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
+# Rails.backtrace_cleaner.remove_silencers!
3  config/initializers/compass.rb
@@ -0,0 +1,3 @@
+require 'compass'
+require 'compass/app_integration/rails'
+Compass::AppIntegration::Rails.initialize!
10 config/initializers/inflections.rb
@@ -0,0 +1,10 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new inflection rules using the following format
+# (all these examples are active by default):
+# ActiveSupport::Inflector.inflections do |inflect|
+# inflect.plural /^(ox)$/i, '\1en'
+# inflect.singular /^(ox)en/i, '\1'
+# inflect.irregular 'person', 'people'
+# inflect.uncountable %w( fish sheep )
+# end
5 config/initializers/mime_types.rb
@@ -0,0 +1,5 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new mime types for use in respond_to blocks:
+# Mime::Type.register "text/richtext", :rtf
+# Mime::Type.register_alias "text/html", :iphone
7 config/initializers/secret_token.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# Your secret key for verifying the integrity of signed cookies.
+# If you change this key, all old signed cookies will become invalid!
+# Make sure the secret is at least 30 characters and all random,
+# no regular words or you'll be exposed to dictionary attacks.
+AdjudicatorsDkp::Application.config.secret_token = '650cbc1a925edd1c08a9c60b72344b69de2c5aa99ce98c282e2e44daa113f56021e5b0add3ff04e3c05fc488e502e266fb7d24e2e88ffad0f89c8a8028078cbe'
8 config/initializers/session_store.rb
@@ -0,0 +1,8 @@
+# Be sure to restart your server when you modify this file.
+
+AdjudicatorsDkp::Application.config.session_store :cookie_store, :key => '_adjudicators_dkp_session'
+
+# Use the database for sessions instead of the cookie-based default,
+# which shouldn't be used to store highly confidential information
+# (create the session table with "rails generate session_migration")
+# AdjudicatorsDkp::Application.config.session_store :active_record_store
5 config/locales/en.yml
@@ -0,0 +1,5 @@
+# Sample localization file for English. Add more files in this directory for other locales.
+# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
+
+en:
+ hello: "Hello world"
62 config/routes.rb
@@ -0,0 +1,62 @@
+AdjudicatorsDkp::Application.routes.draw do
+ resources :home, :only => [:index]
+
+ root :to => "home#index"
+
+ # The priority is based upon order of creation:
+ # first created -> highest priority.
+
+ # Sample of regular route:
+ # match 'products/:id' => 'catalog#view'
+ # Keep in mind you can assign values other than :controller and :action
+
+ # Sample of named route:
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
+ # This route can be invoked with purchase_url(:id => product.id)
+
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
+ # resources :products
+
+ # Sample resource route with options:
+ # resources :products do
+ # member do
+ # get 'short'
+ # post 'toggle'
+ # end
+ #
+ # collection do
+ # get 'sold'
+ # end
+ # end
+
+ # Sample resource route with sub-resources:
+ # resources :products do
+ # resources :comments, :sales
+ # resource :seller
+ # end
+
+ # Sample resource route with more complex sub-resources
+ # resources :products do
+ # resources :comments
+ # resources :sales do
+ # get 'recent', :on => :collection
+ # end
+ # end
+
+ # Sample resource route within a namespace:
+ # namespace :admin do
+ # # Directs /admin/products/* to Admin::ProductsController
+ # # (app/controllers/admin/products_controller.rb)
+ # resources :products
+ # end
+
+ # You can have the root of your site routed with "root"
+ # just remember to delete public/index.html.
+ # root :to => "welcome#index"
+
+ # See how all your routes lay out with "rake routes"
+
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
+ # Note: This route will make all actions in every controller accessible via GET requests.
+ # match ':controller(/:action(/:id(.:format)))'
+end
15 db/schema.rb
@@ -0,0 +1,15 @@
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally modify your database, and then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your
+# database schema. If you need to create the application database on another
+# system, you should be using db:schema:load, not running all the migrations
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
+
+ActiveRecord::Schema.define(:version => 0) do
+
+end
7 db/seeds.rb
@@ -0,0 +1,7 @@
+# This file should contain all the record creation needed to seed the database with its default values.
+# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
+#
+# Examples:
+#
+# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
+# Mayor.create(:name => 'Daley', :city => cities.first)
2  doc/README_FOR_APP
@@ -0,0 +1,2 @@
+Use this README file to introduce your application and point to useful places in the API for learning more.
+Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
0  lib/tasks/.gitkeep
No changes.
26 lib/tasks/jquery.rake
@@ -0,0 +1,26 @@
+require 'net/https'
+require 'uri'
+
+namespace :jquery do
+ task :update do
+ http = Net::HTTP.new("code.jquery.com")
+ http.start do |http|
+ resp = http.get("/jquery-latest.min.js")
+ open("public/javascripts/jquery.js", "wb") do |file|
+ file.write(resp.body)
+ end
+ end
+
+ http = Net::HTTP.new("github.com", 443)
+ http.use_ssl = true
+ http.start do |http|
+ http.use_ssl = true
+ resp = http.get("/rails/jquery-ujs/raw/master/src/rails.js")
+ open("public/javascripts/rails.js", "wb") do |file|
+ file.write(resp.body)
+ end
+ end
+
+ puts "Updated jQuery and Rails jQuery drivers!"
+ end
+end
415 public/.htaccess
@@ -0,0 +1,415 @@
+# Apache configuration file
+# httpd.apache.org/docs/2.2/mod/quickreference.html
+
+# Note .htaccess files are an overhead, this logic should be in your Apache config if possible
+# httpd.apache.org/docs/2.2/howto/htaccess.html
+
+# Techniques in here adapted from all over, including:
+# Kroc Camen: camendesign.com/.htaccess
+# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
+# Sample .htaccess file of CMS MODx: modxcms.com
+
+
+###
+### If you run a webserver other than apache, consider:
+### github.com/paulirish/html5-boilerplate-server-configs
+###
+
+
+
+# ----------------------------------------------------------------------
+# Better website experience for IE users
+# ----------------------------------------------------------------------
+
+# Force the latest IE version, in various cases when it may fall back to IE7 mode
+# github.com/rails/rails/commit/123eb25#commitcomment-118920
+# Use ChromeFrame if it's installed for a better experience for the poor IE folk
+
+<IfModule mod_setenvif.c>
+ <IfModule mod_headers.c>
+ BrowserMatch MSIE ie
+ Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
+ </IfModule>
+</IfModule>
+
+<IfModule mod_headers.c>
+# Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
+# We need to inform proxies that content changes based on UA
+ Header append Vary User-Agent
+# Cache control is set only if mod_headers is enabled, so that's unncessary to declare
+</IfModule>
+
+
+# ----------------------------------------------------------------------
+# Cross-domain AJAX requests
+# ----------------------------------------------------------------------
+
+# Serve cross-domain ajax requests, disabled.
+# enable-cors.org
+# code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
+
+# <IfModule mod_headers.c>
+# Header set Access-Control-Allow-Origin "*"
+# </IfModule>
+
+
+
+# ----------------------------------------------------------------------
+# Webfont access
+# ----------------------------------------------------------------------
+
+# allow access from all domains for webfonts
+# alternatively you could only whitelist
+# your subdomains like "sub.domain.com"
+
+<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
+ <IfModule mod_headers.c>
+ Header set Access-Control-Allow-Origin "*"
+ </IfModule>
+</FilesMatch>
+
+
+
+# ----------------------------------------------------------------------
+# Proper MIME type for all files
+# ----------------------------------------------------------------------
+
+# audio
+AddType audio/ogg oga ogg
+
+# video
+AddType video/ogg ogv
+AddType video/mp4 mp4
+AddType video/webm webm
+
+# Proper svg serving. Required for svg webfonts on iPad
+# twitter.com/FontSquirrel/status/14855840545
+AddType image/svg+xml svg svgz
+AddEncoding gzip svgz
+
+# webfonts
+AddType application/vnd.ms-fontobject eot
+AddType font/truetype ttf
+AddType font/opentype otf
+AddType font/opentype woff
+ # ^ hack to avoid chrome console warning: crbug.com/70283
+
+# assorted types
+AddType image/x-icon ico
+AddType image/webp webp
+AddType text/cache-manifest manifest
+AddType text/x-component htc
+AddType application/x-chrome-extension crx
+AddType application/x-xpinstall xpi
+AddType application/octet-stream safariextz
+
+
+
+# ----------------------------------------------------------------------
+# Allow concatenation from within specific js and css files
+# ----------------------------------------------------------------------
+
+# e.g. Inside of script.combined.js you could have
+# <!--#include file="jquery.js" -->
+# <!--#include file="jquery.idletimer.js" -->
+# and they would be included into this single file
+
+# this is not in use in the boilerplate as it stands. you may
+# choose to name your files in this way for this advantage