netzke-testing 0.9.1 → 0.10.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -2
  3. data/Gemfile +2 -2
  4. data/README.md +13 -12
  5. data/Rakefile +7 -0
  6. data/app/assets/{vendor/javascripts → javascripts/netzke/testing}/expect/expect.js +0 -0
  7. data/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee +3 -2
  8. data/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee +15 -1
  9. data/app/assets/{vendor/javascripts → javascripts/netzke/testing}/mocha/mocha.js +0 -0
  10. data/app/assets/{vendor/stylesheets → stylesheets/netzke/testing}/mocha/mocha.css +0 -0
  11. data/app/controllers/netzke/testing_controller.rb +9 -2
  12. data/app/views/layouts/netzke/testing.html.erb +10 -5
  13. data/lib/netzke/testing/helpers.rb +13 -9
  14. data/lib/netzke/testing/version.rb +1 -1
  15. data/lib/netzke/testing.rb +5 -0
  16. data/netzke-testing.gemspec +3 -1
  17. data/spec/features/foo_spec.rb +7 -0
  18. data/spec/features/javascripts/foo.js.coffee +6 -0
  19. data/spec/rails_app/.gitignore +15 -0
  20. data/spec/rails_app/README.rdoc +248 -15
  21. data/spec/rails_app/Rakefile +1 -0
  22. data/spec/rails_app/app/assets/images/rails.png +0 -0
  23. data/spec/rails_app/app/assets/javascripts/application.js +3 -4
  24. data/spec/rails_app/app/assets/{images/.keep → javascripts/custom.js} +0 -0
  25. data/spec/rails_app/app/controllers/application_controller.rb +1 -3
  26. data/spec/rails_app/app/{controllers/concerns/.keep → mailers/.gitkeep} +0 -0
  27. data/spec/rails_app/app/{mailers/.keep → models/.gitkeep} +0 -0
  28. data/spec/rails_app/app/views/layouts/application.html.erb +2 -2
  29. data/spec/rails_app/config/application.rb +44 -5
  30. data/spec/rails_app/config/boot.rb +2 -0
  31. data/spec/rails_app/config/environment.rb +2 -2
  32. data/spec/rails_app/config/environments/development.rb +20 -12
  33. data/spec/rails_app/config/environments/production.rb +27 -40
  34. data/spec/rails_app/config/environments/test.rb +15 -14
  35. data/spec/rails_app/config/initializers/inflections.rb +5 -6
  36. data/spec/rails_app/config/initializers/netzke_testing.rb +4 -0
  37. data/spec/rails_app/config/initializers/secret_token.rb +2 -7
  38. data/spec/rails_app/config/initializers/session_store.rb +5 -0
  39. data/spec/rails_app/config/initializers/wrap_parameters.rb +6 -6
  40. data/spec/rails_app/config/locales/en.yml +2 -20
  41. data/spec/rails_app/config.ru +1 -1
  42. data/spec/rails_app/{app/models/.keep → lib/assets/.gitkeep} +0 -0
  43. data/spec/rails_app/{app/models/concerns/.keep → lib/tasks/.gitkeep} +0 -0
  44. data/spec/rails_app/{lib/assets/.keep → log/.gitkeep} +0 -0
  45. data/spec/rails_app/public/404.html +11 -43
  46. data/spec/rails_app/public/422.html +11 -43
  47. data/spec/rails_app/public/500.html +11 -43
  48. data/spec/rails_app/public/index.html +241 -0
  49. data/spec/rails_app/public/robots.txt +1 -1
  50. data/spec/rails_app/script/rails +6 -0
  51. data/spec/spec_helper.rb +4 -4
  52. data/spec/testing_controller_spec.rb +20 -0
  53. metadata +61 -31
  54. data/spec/rails_app/bin/bundle +0 -3
  55. data/spec/rails_app/bin/rails +0 -4
  56. data/spec/rails_app/bin/rake +0 -4
  57. data/spec/rails_app/config/initializers/filter_parameter_logging.rb +0 -4
  58. data/spec/rails_app/lib/tasks/.keep +0 -0
  59. data/spec/rails_app/log/.keep +0 -0
@@ -2,8 +2,8 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>RailsApp</title>
5
- <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6
- <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
5
+ <%= stylesheet_link_tag "application", :media => "all" %>
6
+ <%= javascript_include_tag "application" %>
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
9
9
  <body>
@@ -1,11 +1,14 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- require "action_controller/railtie"
4
- require "sprockets/railtie"
3
+ require 'rails/all'
4
+
5
+ if defined?(Bundler)
6
+ # If you precompile assets before deploying to production, use this line
7
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
8
+ # If you want your assets lazily compiled in production, use this line
9
+ # Bundler.require(:default, :assets, Rails.env)
10
+ end
5
11
 
6
- # Require the gems listed in Gemfile, including any gems
7
- # you've limited to :test, :development, or :production.
8
- Bundler.require(:default, Rails.env)
9
12
  require "netzke/testing"
10
13
 
11
14
  module RailsApp
@@ -14,6 +17,16 @@ module RailsApp
14
17
  # Application configuration should go into files in config/initializers
15
18
  # -- all .rb files in that directory are automatically loaded.
16
19
 
20
+ # Custom directories with classes and modules you want to be autoloadable.
21
+ # config.autoload_paths += %W(#{config.root}/extras)
22
+
23
+ # Only load the plugins named here, in the order given (default is alphabetical).
24
+ # :all can be used as a placeholder for all plugins not explicitly named.
25
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
26
+
27
+ # Activate observers that should always be running.
28
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
29
+
17
30
  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
18
31
  # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
19
32
  # config.time_zone = 'Central Time (US & Canada)'
@@ -21,5 +34,31 @@ module RailsApp
21
34
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
22
35
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
23
36
  # config.i18n.default_locale = :de
37
+
38
+ # Configure the default encoding used in templates for Ruby 1.9.
39
+ config.encoding = "utf-8"
40
+
41
+ # Configure sensitive parameters which will be filtered from the log file.
42
+ config.filter_parameters += [:password]
43
+
44
+ # Enable escaping HTML in JSON.
45
+ config.active_support.escape_html_entities_in_json = true
46
+
47
+ # Use SQL instead of Active Record's schema dumper when creating the database.
48
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
49
+ # like if you have constraints or database-specific column types
50
+ # config.active_record.schema_format = :sql
51
+
52
+ # Enforce whitelist mode for mass assignment.
53
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
54
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
55
+ # parameters by using an attr_accessible or attr_protected declaration.
56
+ config.active_record.whitelist_attributes = true
57
+
58
+ # Enable the asset pipeline
59
+ config.assets.enabled = true
60
+
61
+ # Version of your assets, change this if you want to expire all your assets
62
+ config.assets.version = '1.0'
24
63
  end
25
64
  end
@@ -1,3 +1,5 @@
1
+ require 'rubygems'
2
+
1
3
  # Set up gems listed in the Gemfile.
2
4
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
5
 
@@ -1,5 +1,5 @@
1
- # Load the Rails application.
1
+ # Load the rails application
2
2
  require File.expand_path('../application', __FILE__)
3
3
 
4
- # Initialize the Rails application.
4
+ # Initialize the rails application
5
5
  RailsApp::Application.initialize!
@@ -1,29 +1,37 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
2
+ # Settings specified here will take precedence over those in config/application.rb
3
3
 
4
4
  # In the development environment your application's code is reloaded on
5
5
  # every request. This slows down response time but is perfect for development
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
- # Do not eager load code on boot.
10
- config.eager_load = false
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
11
 
12
- # Show full error reports and disable caching.
12
+ # Show full error reports and disable caching
13
13
  config.consider_all_requests_local = true
14
14
  config.action_controller.perform_caching = false
15
15
 
16
- # Don't care if the mailer can't send.
17
- # config.action_mailer.raise_delivery_errors = false
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
18
 
19
- # Print deprecation notices to the Rails logger.
19
+ # Print deprecation notices to the Rails logger
20
20
  config.active_support.deprecation = :log
21
21
 
22
- # Raise an error on page load if there are pending migrations
23
- # config.active_record.migration_error = :page_load
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
24
 
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
25
+ # Raise exception on mass assignment protection for Active Record models
26
+ config.active_record.mass_assignment_sanitizer = :strict
27
+
28
+ # Log the query plan for queries taking more than this (works
29
+ # with SQLite, MySQL, and PostgreSQL)
30
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
31
+
32
+ # Do not compress assets
33
+ config.assets.compress = false
34
+
35
+ # Expands the lines which load the assets
28
36
  config.assets.debug = true
29
37
  end
@@ -1,80 +1,67 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
2
+ # Settings specified here will take precedence over those in config/application.rb
3
3
 
4
- # Code is not reloaded between requests.
4
+ # Code is not reloaded between requests
5
5
  config.cache_classes = true
6
6
 
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both thread web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
7
+ # Full error reports are disabled and caching is turned on
14
8
  config.consider_all_requests_local = false
15
9
  config.action_controller.perform_caching = true
16
10
 
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
23
12
  config.serve_static_assets = false
24
13
 
25
- # Compress JavaScripts and CSS.
26
- config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
28
16
 
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
30
18
  config.assets.compile = false
31
19
 
32
- # Generate digests for assets URLs.
20
+ # Generate digests for assets URLs
33
21
  config.assets.digest = true
34
22
 
35
- # Version of your assets, change this if you want to expire all your assets.
36
- config.assets.version = '1.0'
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
37
25
 
38
- # Specifies the header that your server uses for sending files.
26
+ # Specifies the header that your server uses for sending files
39
27
  # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
28
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
29
 
42
30
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
31
  # config.force_ssl = true
44
32
 
45
- # Set to :debug to see everything in the log.
46
- config.log_level = :info
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
47
35
 
48
- # Prepend all log lines with the following tags.
36
+ # Prepend all log lines with the following tags
49
37
  # config.log_tags = [ :subdomain, :uuid ]
50
38
 
51
- # Use a different logger for distributed setups.
39
+ # Use a different logger for distributed setups
52
40
  # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
41
 
54
- # Use a different cache store in production.
42
+ # Use a different cache store in production
55
43
  # config.cache_store = :mem_cache_store
56
44
 
57
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
58
46
  # config.action_controller.asset_host = "http://assets.example.com"
59
47
 
60
- # Precompile additional assets.
61
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
62
49
  # config.assets.precompile += %w( search.js )
63
50
 
64
- # Ignore bad email addresses and do not raise email delivery errors.
65
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
51
+ # Disable delivery errors, bad email addresses will be ignored
66
52
  # config.action_mailer.raise_delivery_errors = false
67
53
 
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
68
57
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation can not be found).
58
+ # the I18n.default_locale when a translation can not be found)
70
59
  config.i18n.fallbacks = true
71
60
 
72
- # Send deprecation notices to registered listeners.
61
+ # Send deprecation notices to registered listeners
73
62
  config.active_support.deprecation = :notify
74
63
 
75
- # Disable automatic flushing of the log to improve performance.
76
- # config.autoflush_log = false
77
-
78
- # Use default logging formatter so that PID and timestamp are not suppressed.
79
- config.log_formatter = ::Logger::Formatter.new
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
80
67
  end
@@ -1,5 +1,5 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
2
+ # Settings specified here will take precedence over those in config/application.rb
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
5
  # test suite. You never need to work with it otherwise. Remember that
@@ -7,30 +7,31 @@ RailsApp::Application.configure do
7
7
  # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = true
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
17
12
  config.static_cache_control = "public, max-age=3600"
18
13
 
19
- # Show full error reports and disable caching.
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
20
18
  config.consider_all_requests_local = true
21
19
  config.action_controller.perform_caching = false
22
20
 
23
- # Raise exceptions instead of rendering exception templates.
21
+ # Raise exceptions instead of rendering exception templates
24
22
  config.action_dispatch.show_exceptions = false
25
23
 
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
28
26
 
29
27
  # Tell Action Mailer not to deliver emails to the real world.
30
28
  # The :test delivery method accumulates sent emails in the
31
29
  # ActionMailer::Base.deliveries array.
32
- # config.action_mailer.delivery_method = :test
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
33
34
 
34
- # Print deprecation notices to the stderr.
35
+ # Print deprecation notices to the stderr
35
36
  config.active_support.deprecation = :stderr
36
37
  end
@@ -1,16 +1,15 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
7
6
  # inflect.plural /^(ox)$/i, '\1en'
8
7
  # inflect.singular /^(ox)en/i, '\1'
9
8
  # inflect.irregular 'person', 'people'
10
9
  # inflect.uncountable %w( fish sheep )
11
10
  # end
12
-
11
+ #
13
12
  # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
13
+ # ActiveSupport::Inflector.inflections do |inflect|
15
14
  # inflect.acronym 'RESTful'
16
15
  # end
@@ -0,0 +1,4 @@
1
+ Netzke::Testing.setup do |config|
2
+ config.custom_js = ['custom.js']
3
+ config.spec_root = File.expand_path("../../../../..", __FILE__)
4
+ end
@@ -1,12 +1,7 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # Your secret key is used for verifying the integrity of signed cookies.
3
+ # Your secret key for verifying the integrity of signed cookies.
4
4
  # If you change this key, all old signed cookies will become invalid!
5
-
6
5
  # Make sure the secret is at least 30 characters and all random,
7
6
  # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- RailsApp::Application.config.secret_key_base = '5d0797785cb8b23c9656b01d77f2296275565682b4d185d2772c4d6d55a6da98a07210befebe36610acbe235af09cafd445ac623536430cb6f0eb8e62dbb0467'
7
+ RailsApp::Application.config.secret_token = '34763941235477b04f32be2eb6331b7a2386d6ecbe0d31557541a127647774baaa7ad61ae4aa36af28eb5d597fc7156023fe47977d968853bad73030f267f953'
@@ -1,3 +1,8 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
3
  RailsApp::Application.config.session_store :cookie_store, key: '_rails_app_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # RailsApp::Application.config.session_store :active_record_store
@@ -1,14 +1,14 @@
1
1
  # Be sure to restart your server when you modify this file.
2
-
2
+ #
3
3
  # This file contains settings for ActionController::ParamsWrapper which
4
4
  # is enabled by default.
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
8
+ wrap_parameters format: [:json]
9
9
  end
10
10
 
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -1,23 +1,5 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
21
3
 
22
4
  en:
23
5
  hello: "Hello world"
@@ -1,4 +1,4 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
3
  require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
4
+ run RailsApp::Application
File without changes
@@ -2,48 +2,17 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
47
16
  </style>
48
17
  </head>
49
18
 
@@ -53,6 +22,5 @@
53
22
  <h1>The page you were looking for doesn't exist.</h1>
54
23
  <p>You may have mistyped the address or the page may have moved.</p>
55
24
  </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
25
  </body>
58
26
  </html>
@@ -2,48 +2,17 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
47
16
  </style>
48
17
  </head>
49
18
 
@@ -53,6 +22,5 @@
53
22
  <h1>The change you wanted was rejected.</h1>
54
23
  <p>Maybe you tried to change something you didn't have access to.</p>
55
24
  </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
25
  </body>
58
26
  </html>
@@ -2,48 +2,17 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
47
16
  </style>
48
17
  </head>
49
18
 
@@ -52,6 +21,5 @@
52
21
  <div class="dialog">
53
22
  <h1>We're sorry, but something went wrong.</h1>
54
23
  </div>
55
- <p>If you are the application owner check the logs for more information.</p>
56
24
  </body>
57
25
  </html>