Permalink
Browse files

All work until 17/10/2012 in one commit

This commit was obtained by squashing multiple initial commits on 2012-10-18.
  • Loading branch information...
alexeymuranov committed May 24, 2012
0 parents commit 3573d584001c110555673169de10d0d4afc44625
Showing with 7,266 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +47 −0 Gemfile
  3. +82 −0 Gemfile.lock
  4. +61 −0 Rakefile
  5. +763 −0 application.rb
  6. +12 −0 config.ru
  7. +25 −0 config/database.yml
  8. +57 −0 db/migrate/01_create_participants.rb
  9. +27 −0 db/migrate/02_create_talks.rb
  10. +21 −0 db/migrate/03_create_talk_proposals.rb
  11. +16 −0 db/migrate/04_create_hotels.rb
  12. +20 −0 db/migrate/05_create_accommodations.rb
  13. +16 −0 db/migrate/06_create_conference_dinner_reservations.rb
  14. +30 −0 helpers.rb
  15. +205 −0 internationalisation/defaults/en-GB.yml
  16. +205 −0 internationalisation/defaults/en-US.yml
  17. +205 −0 internationalisation/defaults/en.yml
  18. +222 −0 internationalisation/defaults/fr.yml
  19. +31 −0 internationalisation/emails/en.yml
  20. +31 −0 internationalisation/emails/fr.yml
  21. +81 −0 internationalisation/models/en.yml
  22. +81 −0 internationalisation/models/fr.yml
  23. +188 −0 internationalisation/views/en.yml
  24. +188 −0 internationalisation/views/fr.yml
  25. +61 −0 lib/attribute_constraints.rb
  26. +38 −0 lib/attribute_mutability.rb
  27. +44 −0 lib/attribute_types.rb
  28. +62 −0 lib/pseudo_columns.rb
  29. +270 −0 models.rb
  30. +26 −0 public_folder/404.html
  31. +26 −0 public_folder/422.html
  32. +36 −0 public_folder/css/blueprint/ie.css
  33. +29 −0 public_folder/css/blueprint/print.css
  34. +265 −0 public_folder/css/blueprint/screen.css
  35. +102 −0 public_folder/css/html5reset.css
  36. BIN public_folder/css/jquery-ui/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  37. BIN public_folder/css/jquery-ui/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  38. BIN public_folder/css/jquery-ui/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  39. BIN public_folder/css/jquery-ui/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  40. BIN public_folder/css/jquery-ui/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  41. BIN public_folder/css/jquery-ui/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  42. BIN public_folder/css/jquery-ui/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  43. BIN public_folder/css/jquery-ui/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  44. BIN public_folder/css/jquery-ui/smoothness/images/ui-icons_222222_256x240.png
  45. BIN public_folder/css/jquery-ui/smoothness/images/ui-icons_2e83ff_256x240.png
  46. BIN public_folder/css/jquery-ui/smoothness/images/ui-icons_454545_256x240.png
  47. BIN public_folder/css/jquery-ui/smoothness/images/ui-icons_888888_256x240.png
  48. BIN public_folder/css/jquery-ui/smoothness/images/ui-icons_cd0a0a_256x240.png
  49. +354 −0 public_folder/css/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css
  50. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
  51. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
  52. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
  53. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
  54. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
  55. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
  56. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  57. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  58. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
  59. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-icons_222222_256x240.png
  60. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-icons_228ef1_256x240.png
  61. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-icons_ef8c08_256x240.png
  62. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-icons_ffd27a_256x240.png
  63. BIN public_folder/css/jquery-ui/ui-lightness/images/ui-icons_ffffff_256x240.png
  64. +354 −0 public_folder/css/jquery-ui/ui-lightness/jquery-ui-1.8.21.custom.css
  65. BIN public_folder/favicon.ico
  66. BIN public_folder/images/CNRSfilaire-grand.jpg
  67. BIN public_folder/images/bannerToulouse.jpg
  68. BIN public_folder/images/logo_cimi.jpg
  69. BIN public_folder/images/logo_imt-mixed.png
  70. BIN public_folder/images/logo_imt-transparent.png
  71. BIN public_folder/images/logo_imt.png
  72. BIN public_folder/images/logo_offi_imt.jpg
  73. BIN public_folder/images/logo_toulouse3.jpg
  74. BIN public_folder/images/logo_tresse.png
  75. BIN public_folder/images/logo_ups.png
  76. +4 −0 public_folder/js/jquery-1.7.2.min.js
  77. +9 −0 public_folder/js/jquery-ui-1.8.21.custom.min.js
  78. +59 −0 tests/tests.rb
  79. +12 −0 view_templates/_jquery_ui_for_forms.haml
  80. +31 −0 view_templates/email/_registration_details.haml
  81. +12 −0 view_templates/email/registration_confirmation.html.haml
  82. +6 −0 view_templates/email/registration_notification.html.haml
  83. +76 −0 view_templates/layout.haml
  84. +3 −0 view_templates/layout/_banner.haml
  85. +16 −0 view_templates/layout/_footer.haml
  86. +5 −0 view_templates/layout/_header.haml
  87. +6 −0 view_templates/layout/_language_selector.haml
  88. +15 −0 view_templates/layout/_main_menu.haml
  89. +15 −0 view_templates/layout/_main_menu_for_organisers.haml
  90. +5 −0 view_templates/layout/_title.haml
  91. +146 −0 view_templates/pages/_registration_form.haml
  92. +7 −0 view_templates/pages/accommodation.html.haml
  93. +7 −0 view_templates/pages/contacts.html.haml
  94. +7 −0 view_templates/pages/directions_to_get_here.html.haml
  95. +7 −0 view_templates/pages/funding.html.haml
  96. +7 −0 view_templates/pages/generic_page.html.haml
  97. +7 −0 view_templates/pages/index.html.haml
  98. 0 view_templates/pages/organiser_connexion/_hotel.haml
  99. 0 view_templates/pages/organiser_connexion/_hotel_form.haml
  100. +62 −0 view_templates/pages/organiser_connexion/_participant.haml
  101. +163 −0 view_templates/pages/organiser_connexion/_participant_form.haml
  102. +25 −0 view_templates/pages/organiser_connexion/_talk.haml
  103. +89 −0 view_templates/pages/organiser_connexion/_talk_form.haml
  104. +15 −0 view_templates/pages/organiser_connexion/delete_participant.html.haml
  105. +14 −0 view_templates/pages/organiser_connexion/delete_talk.html.haml
  106. 0 view_templates/pages/organiser_connexion/hotels.html.haml
  107. +27 −0 view_templates/pages/organiser_connexion/login.html.haml
  108. +9 −0 view_templates/pages/organiser_connexion/participants.html.haml
  109. +9 −0 view_templates/pages/organiser_connexion/talks.html.haml
  110. +7 −0 view_templates/pages/organising_committee.html.haml
  111. +12 −0 view_templates/pages/participants.html.haml
  112. +1 −0 view_templates/pages/poster.html.haml
  113. +7 −0 view_templates/pages/program.html.haml
  114. +3 −0 view_templates/pages/registration.html.haml
  115. +7 −0 view_templates/pages/scientific_committee.html.haml
  116. +7 −0 view_templates/pages/useful_links.html.haml
  117. +6 −0 view_templates/stylesheets/application.css.scss
  118. +39 −0 view_templates/stylesheets/bourbon/_bourbon.scss
  119. +273 −0 view_templates/stylesheets/bourbon/addons/_button.scss
  120. +29 −0 view_templates/stylesheets/bourbon/addons/_clearfix.scss
  121. +12 −0 view_templates/stylesheets/bourbon/addons/_font-face.scss
  122. +5 −0 view_templates/stylesheets/bourbon/addons/_font-family.scss
  123. +15 −0 view_templates/stylesheets/bourbon/addons/_hide-text.scss
  124. +36 −0 view_templates/stylesheets/bourbon/addons/_html5-input-types.scss
  125. +42 −0 view_templates/stylesheets/bourbon/addons/_position.scss
  126. +32 −0 view_templates/stylesheets/bourbon/addons/_timing-functions.scss
  127. +125 −0 view_templates/stylesheets/bourbon/css3/_animation.scss
  128. +3 −0 view_templates/stylesheets/bourbon/css3/_appearance.scss
  129. +57 −0 view_templates/stylesheets/bourbon/css3/_background-image.scss
  130. +11 −0 view_templates/stylesheets/bourbon/css3/_background-size.scss
  131. +56 −0 view_templates/stylesheets/bourbon/css3/_border-image.scss
  132. +42 −0 view_templates/stylesheets/bourbon/css3/_border-radius.scss
  133. +12 −0 view_templates/stylesheets/bourbon/css3/_box-shadow.scss
  134. +4 −0 view_templates/stylesheets/bourbon/css3/_box-sizing.scss
  135. +47 −0 view_templates/stylesheets/bourbon/css3/_columns.scss
  136. +52 −0 view_templates/stylesheets/bourbon/css3/_flex-box.scss
  137. +8 −0 view_templates/stylesheets/bourbon/css3/_inline-block.scss
  138. +43 −0 view_templates/stylesheets/bourbon/css3/_linear-gradient.scss
  139. +12 −0 view_templates/stylesheets/bourbon/css3/_prefixer.scss
  140. +76 −0 view_templates/stylesheets/bourbon/css3/_radial-gradient.scss
  141. +11 −0 view_templates/stylesheets/bourbon/css3/_transform.scss
  142. +72 −0 view_templates/stylesheets/bourbon/css3/_transition.scss
  143. +3 −0 view_templates/stylesheets/bourbon/css3/_user-select.scss
  144. +44 −0 view_templates/stylesheets/bourbon/functions/_deprecated-webkit-gradient.scss
  145. +35 −0 view_templates/stylesheets/bourbon/functions/_flex-grid.scss
  146. +13 −0 view_templates/stylesheets/bourbon/functions/_grid-width.scss
  147. +23 −0 view_templates/stylesheets/bourbon/functions/_linear-gradient.scss
  148. +40 −0 view_templates/stylesheets/bourbon/functions/_modular-scale.scss
  149. +62 −0 view_templates/stylesheets/bourbon/functions/_radial-gradient.scss
  150. +14 −0 view_templates/stylesheets/bourbon/functions/_render-gradients.scss
  151. +9 −0 view_templates/stylesheets/bourbon/functions/_tint-shade.scss
  152. +22 −0 view_templates/stylesheets/bourbon/functions/_transition-property-name.scss
  153. +6 −0 view_templates/stylesheets/bourbon/lib/bourbon.rb
  154. +6 −0 view_templates/stylesheets/bourbon/lib/bourbon/sass_extensions.rb
  155. +13 −0 view_templates/stylesheets/bourbon/lib/bourbon/sass_extensions/functions.rb
  156. +14 −0 view_templates/stylesheets/bourbon/lib/bourbon/sass_extensions/functions/compact.rb
  157. +249 −0 view_templates/stylesheets/custom.scss
  158. +66 −0 view_templates/stylesheets/experiments.scss
  159. +181 −0 view_templates/stylesheets/positions.scss
  160. +1 −0 view_templates/text/en/accommodation.md
  161. +7 −0 view_templates/text/en/contacts.md
  162. +3 −0 view_templates/text/en/directions_to_get_here.md
  163. +1 −0 view_templates/text/en/funding.md
  164. +17 −0 view_templates/text/en/index.md
  165. +1 −0 view_templates/text/en/invited_participants.md
  166. +1 −0 view_templates/text/en/organising_committee.md
  167. +1 −0 view_templates/text/en/poster.md
  168. +18 −0 view_templates/text/en/program.md
  169. +1 −0 view_templates/text/en/registration.md
  170. +3 −0 view_templates/text/en/registration_confirmation.md
  171. +11 −0 view_templates/text/en/scientific_committee.md
  172. +5 −0 view_templates/text/en/useful_links.md
  173. +1 −0 view_templates/text/fr/accommodation.md
  174. +7 −0 view_templates/text/fr/contacts.md
  175. +3 −0 view_templates/text/fr/directions_to_get_here.md
  176. +1 −0 view_templates/text/fr/funding.md
  177. +17 −0 view_templates/text/fr/index.md
  178. +1 −0 view_templates/text/fr/invited_participants.md
  179. +1 −0 view_templates/text/fr/organising_committee.md
  180. +1 −0 view_templates/text/fr/poster.md
  181. +18 −0 view_templates/text/fr/program.md
  182. +1 −0 view_templates/text/fr/registration.md
  183. +3 −0 view_templates/text/fr/registration_confirmation.md
  184. +11 −0 view_templates/text/fr/scientific_committee.md
  185. +5 −0 view_templates/text/fr/useful_links.md
@@ -0,0 +1,6 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.DS_Store
+.sass-cache/
47 Gemfile
@@ -0,0 +1,47 @@
+source :rubygems
+
+# Rake (like "make"), to use Rakefile (Makefile for Ruby):
+gem 'rake'
+
+gem 'sinatra'
+
+group :test do
+ # Testing
+ gem 'rack-test'
+end
+
+group :development, :test do
+ # Web server (instead of WEBrick):
+ gem 'thin'
+end
+
+# Database interaction:
+gem 'activerecord'
+gem 'sqlite3'
+
+# HTML/CSS from templates:
+gem 'haml'
+gem 'redcarpet'
+gem 'sass'
+
+# Mixin library for Sass:
+gem 'bourbon'
+
+# Localizations:
+gem 'i18n'
+
+# Email:
+gem 'pony'
+
+# Session-based flash messages
+gem 'sinatra-flash'
+
+group :development do
+ # Ruby Debugger:
+ case RUBY_VERSION[0..2]
+ when '1.8'
+ gem 'ruby-debug'
+ when '1.9'
+ gem 'debugger'
+ end
+end
@@ -0,0 +1,82 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activemodel (3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ activerecord (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activesupport (3.2.8)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ bourbon (2.1.1)
+ sass (>= 3.1)
+ builder (3.0.3)
+ columnize (0.3.6)
+ daemons (1.1.9)
+ debugger (1.2.0)
+ columnize (>= 0.3.1)
+ debugger-linecache (~> 1.1.1)
+ debugger-ruby_core_source (~> 1.1.3)
+ debugger-linecache (1.1.2)
+ debugger-ruby_core_source (>= 1.1.1)
+ debugger-ruby_core_source (1.1.4)
+ eventmachine (1.0.0)
+ haml (3.1.7)
+ i18n (0.6.1)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ polyglot (0.3.3)
+ pony (1.4)
+ mail (> 2.0)
+ rack (1.4.1)
+ rack-protection (1.2.0)
+ rack
+ rack-test (0.6.2)
+ rack (>= 1.0)
+ rake (0.9.2.2)
+ redcarpet (2.2.1)
+ sass (3.2.1)
+ sinatra (1.3.3)
+ rack (~> 1.3, >= 1.3.6)
+ rack-protection (~> 1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ sinatra-flash (0.3.0)
+ sinatra (>= 1.0.0)
+ sqlite3 (1.3.6)
+ thin (1.5.0)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ tilt (1.3.3)
+ treetop (1.4.11)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activerecord
+ bourbon
+ debugger
+ haml
+ i18n
+ pony
+ rack-test
+ rake
+ redcarpet
+ sass
+ sinatra
+ sinatra-flash
+ sqlite3
+ thin
@@ -0,0 +1,61 @@
+# encoding: UTF-8 (magic comment)
+
+require 'active_record'
+require 'active_support/core_ext/string/strip'
+# require 'fileutils'
+require 'rake/testtask'
+require_relative 'application'
+
+Rake::TestTask.new do |t|
+ t.pattern = "tests/*.rb"
+end
+
+namespace :db do
+ desc 'create an ActiveRecord migration in ./db/migrate'
+ task :create_migration do
+ name = ENV['NAME']
+ if name.nil?
+ raise 'No NAME specified. Example usage: `rake db:create_migration NAME=create_users`'
+ end
+
+ migrations_dir = File.join('db', 'migrate')
+ version = ENV['VERSION'] || Time.now.utc.strftime('%Y%m%d%H%M%S')
+ filename = "#{ version }_#{ name }.rb"
+ migration_class = name.split('_').map(&:capitalize).join
+
+ FileUtils.mkdir_p(migrations_dir)
+
+ File.open(File.join(migrations_dir, filename), 'w') do |file|
+ file.write <<-MIGRATION.strip_heredoc
+ class #{ migration_class } < ActiveRecord::Migration
+ def up
+ end
+
+ def down
+ end
+ end
+ MIGRATION
+ end
+ end
+
+ desc 'migrate the database (use version with VERSION=n)'
+ # NOTE: set 'RACK_ENV' environment variable to specify deployment
+ # environment (:-\)
+ # It can be 'development', 'test', 'production'.
+ # The default is usually 'development'.
+ # Example: rake RACK_ENV=test db:migrate
+ task :migrate do
+ ActiveRecord::Base.logger = Logger.new(STDOUT)
+ ActiveRecord::Migration.verbose = true
+ version = ENV['VERSION'] ? ENV['VERSION'].to_i : nil
+ CTT2013.connect_database
+ ActiveRecord::Migrator.migrate('db/migrate', version)
+ end
+
+ desc 'rolls back the migration (use steps with STEP=n)'
+ task :rollback do
+ CTT2013.connect_database
+ step = ENV['STEP'] ? ENV['STEP'].to_i : 1
+ ActiveRecord::Migrator.rollback('db/migrate', step)
+ end
+end
Oops, something went wrong.

0 comments on commit 3573d58

Please sign in to comment.