interpret 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/app/controllers/interpret/base_controller.rb +20 -1
  2. data/app/controllers/interpret/tools_controller.rb +7 -0
  3. data/app/controllers/interpret/translations_controller.rb +45 -3
  4. data/app/models/interpret/translation.rb +9 -6
  5. data/app/sweepers/interpret/base_sweeper.rb +4 -0
  6. data/app/sweepers/interpret/translation_sweeper.rb +1 -4
  7. data/app/views/interpret/search/index.html.erb +5 -3
  8. data/app/views/interpret/search/perform.html.erb +2 -4
  9. data/app/views/interpret/tools/index.html.erb +9 -0
  10. data/app/views/interpret/translations/_listing.html.erb +49 -13
  11. data/app/views/interpret/translations/index.html.erb +13 -6
  12. data/app/views/interpret/translations/new.html.erb +15 -0
  13. data/app/views/layouts/interpret.html.erb +13 -25
  14. data/app/views/layouts/interpret_base.html.erb +14 -0
  15. data/config/routes.rb +4 -1
  16. data/lib/generators/interpret/setup_generator.rb +1 -0
  17. data/lib/generators/interpret/templates/migration.rb +1 -0
  18. data/lib/interpret/helpers.rb +19 -8
  19. data/lib/interpret/version.rb +1 -1
  20. data/lib/interpret.rb +11 -13
  21. data/public/javascripts/interpret.js +7 -0
  22. data/public/stylesheets/interpret_style.css +105 -112
  23. data/spec/models/translation_spec.rb +26 -3
  24. data/test_app/app/controllers/application_controller.rb +12 -0
  25. data/test_app/app/models/user.rb +5 -0
  26. data/test_app/app/views/layouts/application.html.erb +4 -4
  27. data/test_app/app/views/pages/index.html.haml +2 -1
  28. data/test_app/config/initializers/interpret.rb +8 -2
  29. data/test_app/db/migrate/{20110209185258_interpret_create_translations.rb → 20110219143622_interpret_create_translations.rb} +1 -0
  30. data/test_app/db/migrate/20110219173536_create_users.rb +13 -0
  31. data/test_app/db/schema.rb +8 -1
  32. data/test_app/db/seeds.rb +4 -0
  33. data/test_app/public/javascripts/interpret.js +7 -0
  34. data/test_app/public/stylesheets/interpret_style.css +105 -112
  35. metadata +9 -11
  36. data/app/views/interpret/translations/_form.html.erb +0 -5
  37. data/app/views/interpret/translations/edit.html.erb +0 -5
  38. data/lib/generators/interpret/views_generator.rb +0 -16
  39. data/test_app/public/index.html +0 -29
  40. data/test_app/public/javascripts/controls.js +0 -965
  41. data/test_app/public/javascripts/dragdrop.js +0 -974
  42. data/test_app/public/javascripts/effects.js +0 -1123
  43. data/test_app/public/javascripts/prototype.js +0 -6001
@@ -1,16 +0,0 @@
1
- module Interpret
2
-
3
- class ViewsGenerator < Rails::Generators::Base
4
- source_root File.expand_path("../../../../app/views", __FILE__)
5
- desc "Copies all Interpret views to your application."
6
-
7
- argument :scope, :required => false, :default => nil,
8
- :desc => "The scope to copy views to"
9
-
10
- def copy_views
11
- scope ||= Interpret.controller.split("/").first
12
- directory "interpret", "app/views/#{scope}"
13
- end
14
-
15
- end
16
- end
@@ -1,29 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Cuca</title>
5
- <link href="/stylesheets/interpret_style.css?1296240615" media="screen" rel="stylesheet" type="text/css" />
6
- <script src="/javascripts/prototype.js?1296172967" type="text/javascript"></script>
7
- <script src="/javascripts/effects.js?1296172967" type="text/javascript"></script>
8
- <script src="/javascripts/dragdrop.js?1296172967" type="text/javascript"></script>
9
- <script src="/javascripts/controls.js?1296172967" type="text/javascript"></script>
10
- <script src="/javascripts/rails.js?1296172967" type="text/javascript"></script>
11
- <script src="/javascripts/application.js?1296172967" type="text/javascript"></script>
12
- <meta name="csrf-param" content="authenticity_token"/>
13
- <meta name="csrf-token" content="q34JNbHJc2SgY2HwPZZCzuWwThAHB+394DaACl2h9M4="/>
14
- </head>
15
- <body>
16
- This is the APPLICATION main Layout
17
- <h1>Ara canvio cucamonga</h1>
18
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac odio quis dui tincidunt facilisis vitae sit amet nulla. Fusce tincidunt tempor dolor a ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris placerat tincidunt tempus. Nullam at tortor sed magna aliquet pharetra. Curabitur lectus nulla, egestas in ultricies eu, euismod mollis quam.</p>
19
- <h1>SEO experts will eventually decline</h1>
20
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac odio quis dui tincidunt facilisis vitae sit amet nulla. Fusce tincidunt tempor dolor a ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris placerat tincidunt tempus. Nullam at tortor sed magna aliquet pharetra. Curabitur lectus nulla, egestas in ultricies eu, euismod mollis quam.</p>
21
- <h1>Designers will eventually master programming languages</h1>
22
- <p>Aliquam eros enim, malesuada ac rutrum eget, tempor et tellus. Duis egestas, lectus vel blandit mollis, lectus tellus tristique lacus, vel iaculis enim sem vitae orci. In nibh nulla, congue et tempor sed, elementum eu risus. Quisque tempus commodo pretium. Suspendisse gravida ante metus, id placerat sapien. Vestibulum vulputate suscipit massa id cursus. Curabitur sit amet mollis quam. Aliquam erat volutpat. In commodo faucibus massa, id dignissim dui sollicitudin ac. Aenean lobortis consequat lacus, non lobortis ligula pellentesque at. Nunc porta placerat eros in consectetur. Pellentesque et turpis risus. Vestibulum arcu eros, sodales vitae molestie id, aliquet et diam. Duis euismod mollis metus eleifend accumsan. Suspendisse in mollis nisi. Curabitur lorem orci, auctor sed rutrum at, euismod id lacus. Etiam luctus, nunc at ultricies pharetra, ante ante porttitor magna, sit amet fringilla diam dolor id felis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec id feugiat dui.</p>
23
- <p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <a href='#'>Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p>
24
- <a href="/interpret">Traduccions</a>
25
-
26
-
27
- </body>
28
- </html>
29
-