erp_communication_events 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/GPL-3-LICENSE +674 -0
  2. data/README.rdoc +2 -0
  3. data/Rakefile +31 -0
  4. data/app/assets/javascripts/erp_communication_events/application.js +9 -0
  5. data/app/assets/stylesheets/erp_communication_events/application.css +7 -0
  6. data/app/controllers/erp_communication_events/application_controller.rb +4 -0
  7. data/app/helpers/erp_communication_events/application_helper.rb +4 -0
  8. data/app/models/comm_evt_purpose.rb +3 -0
  9. data/app/models/comm_evt_purpose_type.rb +14 -0
  10. data/app/models/comm_evt_status.rb +3 -0
  11. data/app/models/comm_evt_status_type.rb +3 -0
  12. data/app/models/communication_event.rb +20 -0
  13. data/app/models/extensions/party.rb +6 -0
  14. data/app/observers/communication_event_observer.rb +10 -0
  15. data/app/observers/email_address_change_event_observer.rb +13 -0
  16. data/app/observers/phone_number_change_event_observer.rb +13 -0
  17. data/app/observers/postal_address_change_event_observer.rb +13 -0
  18. data/app/views/layouts/erp_communication_events/application.html.erb +14 -0
  19. data/config/routes.rb +2 -0
  20. data/db/migrate/20080805000080_communication_events_services.rb +83 -0
  21. data/db/migrate/20080805000081_communication_events_services_indexes.rb +25 -0
  22. data/lib/erp_communication_events/engine.rb +13 -0
  23. data/lib/erp_communication_events/version.rb +3 -0
  24. data/lib/erp_communication_events.rb +4 -0
  25. data/lib/tasks/erp_communication_events_tasks.rake +4 -0
  26. data/spec/dummy/Rakefile +7 -0
  27. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  28. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  29. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  30. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  31. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/spec/dummy/config/application.rb +44 -0
  33. data/spec/dummy/config/boot.rb +10 -0
  34. data/spec/dummy/config/database.yml +8 -0
  35. data/spec/dummy/config/environment.rb +5 -0
  36. data/spec/dummy/config/environments/spec.rb +27 -0
  37. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy/config/initializers/inflections.rb +10 -0
  39. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  40. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  41. data/spec/dummy/config/initializers/session_store.rb +8 -0
  42. data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
  43. data/spec/dummy/config/locales/en.yml +5 -0
  44. data/spec/dummy/config/routes.rb +3 -0
  45. data/spec/dummy/config.ru +4 -0
  46. data/spec/dummy/public/404.html +26 -0
  47. data/spec/dummy/public/422.html +26 -0
  48. data/spec/dummy/public/500.html +26 -0
  49. data/spec/dummy/public/favicon.ico +0 -0
  50. data/spec/dummy/script/rails +6 -0
  51. data/spec/models/comm_evt_purpose_spec.rb +12 -0
  52. data/spec/models/comm_evt_purpose_type_spec.rb +11 -0
  53. data/spec/models/comm_evt_status_spec.rb +12 -0
  54. data/spec/models/comm_evt_status_type_spec.rb +13 -0
  55. data/spec/models/communication_event_spec.rb +16 -0
  56. data/spec/spec_helper.rb +61 -0
  57. metadata +171 -0
data/Rakefile ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'ErpCommunicationEvents'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+ Bundler::GemHelper.install_tasks
27
+
28
+ require "rspec/core/rake_task"
29
+ RSpec::Core::RakeTask.new(:spec)
30
+ task :default => :spec
31
+
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,4 @@
1
+ module ErpCommunicationEvents
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ErpCommunicationEvents
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ class CommEvtPurpose < ActiveRecord::Base
2
+
3
+ end
@@ -0,0 +1,14 @@
1
+ class CommEvtPurposeType < ActiveRecord::Base
2
+
3
+ has_and_belongs_to_many :communication_events,
4
+ :join_table => 'comm_evt_purposes'
5
+
6
+ def to_label
7
+ "#{description}"
8
+ end
9
+
10
+ def to_s
11
+ "#{description}"
12
+ end
13
+
14
+ end
@@ -0,0 +1,3 @@
1
+ class CommEvtStatus < ActiveRecord::Base
2
+
3
+ end
@@ -0,0 +1,3 @@
1
+ class CommEvtStatusType < ActiveRecord::Base
2
+
3
+ end
@@ -0,0 +1,20 @@
1
+ class CommunicationEvent < ActiveRecord::Base
2
+
3
+ belongs_to :from_party, :class_name => 'Party', :foreign_key => 'party_id_from'
4
+ belongs_to :to_party , :class_name => 'Party', :foreign_key => 'party_id_to'
5
+
6
+ belongs_to :from_role , :class_name => 'RoleType', :foreign_key => 'role_type_id_from'
7
+ belongs_to :to_role , :class_name => 'RoleType', :foreign_key => 'role_type_id_to'
8
+
9
+ has_and_belongs_to_many :comm_evt_purpose_types,:join_table => 'comm_evt_purposes'
10
+
11
+ belongs_to :comm_evt_status, :class_name => 'CommEvtStatus', :foreign_key => 'status_type_id'
12
+
13
+ validates_presence_of :from_role
14
+ validates_presence_of :from_party
15
+
16
+ def to_label
17
+ "#{short_description}"
18
+ end
19
+
20
+ end
@@ -0,0 +1,6 @@
1
+ Party.class_eval do
2
+
3
+ has_many :from_communication_events, :class_name => 'CommunicationEvent', :foreign_key => 'party_id_from'
4
+ has_many :to_communication_events, :class_name => 'CommunicationEvent', :foreign_key => 'party_id_to'
5
+
6
+ end
@@ -0,0 +1,10 @@
1
+ class CommunicationEventObserver < ActiveRecord::Observer
2
+
3
+ def after_commit_on_create(comm_event)
4
+ ErpTechSvcs::CompassLogger.debug "CommunicationEventObserver - calling after_commit_on_create: outside transaction - #{comm_event.connection.outside_transaction?}"
5
+ unless comm_event.comm_evt_purpose_types.first.description.include?("Change Request")
6
+ CommunicationEventMailer.deliver_contact_notification(comm_event)
7
+ end
8
+ end
9
+
10
+ end
@@ -0,0 +1,13 @@
1
+ class EmailAddressChangeEventObserver < ActiveRecord::Observer
2
+ observe :email_address
3
+
4
+ def after_save(email)
5
+ create_change_event(email)
6
+ end
7
+
8
+ private
9
+
10
+ def create_change_event(email)
11
+ end
12
+
13
+ end
@@ -0,0 +1,13 @@
1
+ class PhoneNumberChangeEventObserver < ActiveRecord::Observer
2
+ observe :phone_number
3
+
4
+ def after_save(phone)
5
+ create_change_event(phone)
6
+ end
7
+
8
+ private
9
+
10
+ def create_change_event(phone)
11
+ end
12
+
13
+ end
@@ -0,0 +1,13 @@
1
+ class PostalAddressChangeEventObserver < ActiveRecord::Observer
2
+ observe :postal_address
3
+
4
+ def after_save(address)
5
+ create_change_event(address)
6
+ end
7
+
8
+ private
9
+
10
+ def create_change_event(address)
11
+ end
12
+
13
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>ErpCommunicationEvents</title>
5
+ <%= stylesheet_link_tag "erp_communication_events/application" %>
6
+ <%= javascript_include_tag "erp_communication_events/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ ErpCommunicationEvents::Engine.routes.draw do
2
+ end
@@ -0,0 +1,83 @@
1
+ class CommunicationEventsServices < ActiveRecord::Migration
2
+ def self.up
3
+
4
+ # Create communications_events
5
+ unless table_exists?(:communication_events)
6
+ create_table :communication_events do |t|
7
+ t.column :short_description, :string
8
+ t.column :status_type_id, :integer
9
+ t.column :case_id, :integer
10
+ t.column :contact_mechanism_type, :string
11
+ t.column :role_type_id_from, :integer
12
+ t.column :role_type_id_to, :integer
13
+ t.column :party_id_from, :integer
14
+ t.column :party_id_to, :integer
15
+ t.column :date_time_started, :datetime
16
+ t.column :date_time_ended, :datetime
17
+ t.column :notes, :string
18
+ t.timestamps
19
+ end
20
+ end
21
+
22
+ # Create comm_evt_purpose_types
23
+ unless table_exists?(:comm_evt_purpose_types)
24
+ create_table :comm_evt_purpose_types do |t|
25
+ t.column :parent_id, :integer
26
+ t.column :lft, :integer
27
+ t.column :rgt, :integer
28
+ #custom columns go here
29
+ t.column :description, :string
30
+ t.column :comments, :string
31
+ t.column :internal_identifier, :string
32
+ t.column :external_identifier, :string
33
+ t.column :external_id_source, :string
34
+ t.timestamps
35
+ end
36
+ end
37
+
38
+ # Create comm_evt_purposes
39
+ unless table_exists?(:comm_evt_purposes)
40
+ create_table :comm_evt_purposes, :id => false do |t|
41
+ t.column :communication_event_id, :integer
42
+ t.column :comm_evt_purpose_type_id, :integer
43
+ t.timestamps
44
+ end
45
+ end
46
+
47
+ # Create comm_evt_statuses
48
+ unless table_exists?(:comm_evt_statuses)
49
+ create_table :comm_evt_statuses do |t|
50
+ t.column :parent_id, :integer
51
+ t.column :lft, :integer
52
+ t.column :rgt, :integer
53
+ #custom columns go here
54
+ t.column :description, :string
55
+ t.column :comments, :string
56
+ t.column :internal_identifier, :string
57
+ t.column :external_identifier, :string
58
+ t.column :external_id_source, :string
59
+ t.timestamps
60
+ end
61
+ end
62
+
63
+ # Create comm_evt_status_types
64
+ unless table_exists?(:comm_evt_status_types)
65
+ create_table :comm_evt_status_types do |t|
66
+ t.timestamps
67
+ end
68
+ end
69
+
70
+ end
71
+
72
+ def self.down
73
+ [
74
+ :comm_evt_status_types, :comm_evt_statuses, :comm_evt_purposes,
75
+ :comm_evt_purpose_types, :communication_events
76
+ ].each do |tbl|
77
+ if table_exists?(tbl)
78
+ drop_table tbl
79
+ end
80
+ end
81
+ end
82
+
83
+ end
@@ -0,0 +1,25 @@
1
+ class CommunicationEventsServicesIndexes < ActiveRecord::Migration
2
+ def self.up
3
+ add_index :communication_events, :status_type_id
4
+ add_index :communication_events, :case_id
5
+
6
+ add_index :comm_evt_purpose_types, :parent_id
7
+
8
+ add_index :comm_evt_purposes, :communication_event_id
9
+ add_index :comm_evt_purposes, :comm_evt_purpose_type_id
10
+
11
+ add_index :comm_evt_statuses, :parent_id
12
+ end
13
+
14
+ def self.down
15
+ remove_index :communication_events, :status_type_id
16
+ remove_index :communication_events, :case_id
17
+
18
+ remove_index :comm_evt_purpose_types, :parent_id
19
+
20
+ remove_index :comm_evt_purposes, :communication_event_id
21
+ remove_index :comm_evt_purposes, :comm_evt_purpose_type_id
22
+
23
+ remove_index :comm_evt_statuses, :parent_id
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ module ErpCommunicationEvents
2
+ class Engine < Rails::Engine
3
+ isolate_namespace ErpCommunicationEvents
4
+
5
+ #add observers
6
+ #this is ugly need a better way
7
+ (config.active_record.observers.nil?) ? config.active_record.observers = [:communication_event_observer] : config.active_record.observers << :communication_event_observer
8
+ config.active_record.observers << :email_address_change_event_observer
9
+ config.active_record.observers << :phone_number_change_event_observer
10
+ config.active_record.observers << :phone_number_change_event_observer
11
+
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module ErpCommunicationEvents
2
+ VERSION = "3.0.0"
3
+ end
@@ -0,0 +1,4 @@
1
+ require "erp_communication_events/engine"
2
+
3
+ module ErpCommunicationEvents
4
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :erp_communication_events do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ Dummy::Application.load_tasks
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag "application" %>
6
+ <%= javascript_include_tag "application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,44 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require
6
+ require 'erp_base_erp_svcs'
7
+ require 'erp_tech_svcs'
8
+ require "erp_communication_events"
9
+
10
+ module Dummy
11
+ class Application < Rails::Application
12
+ # Settings in config/environments/* take precedence over those specified here.
13
+ # Application configuration should go into files in config/initializers
14
+ # -- all .rb files in that directory are automatically loaded.
15
+
16
+ # Custom directories with classes and modules you want to be autoloadable.
17
+ # config.autoload_paths += %W(#{config.root}/extras)
18
+
19
+ # Only load the plugins named here, in the order given (default is alphabetical).
20
+ # :all can be used as a placeholder for all plugins not explicitly named.
21
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
22
+
23
+ # Activate observers that should always be running.
24
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
25
+
26
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
27
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
28
+ # config.time_zone = 'Central Time (US & Canada)'
29
+
30
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
31
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
32
+ # config.i18n.default_locale = :de
33
+
34
+ # Configure the default encoding used in templates for Ruby 1.9.
35
+ config.encoding = "utf-8"
36
+
37
+ # Configure sensitive parameters which will be filtered from the log file.
38
+ config.filter_parameters += [:password]
39
+
40
+ # Enable the asset pipeline
41
+ config.assets.enabled = true
42
+ end
43
+ end
44
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,8 @@
1
+ # Warning: The database defined as "test" will be erased and
2
+ # re-generated from your development database when you run "rake".
3
+ # Do not set this db to the same as development or production.
4
+ spec:
5
+ adapter: sqlite3
6
+ database: db/spec.sqlite3
7
+ pool: 5
8
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,27 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
27
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'ae0d58840f73a49e40850c9d815a6a135e169865cdb8721cec7f335a738af09f3483de0f99d7c131f8fdecf2d8b508f8fd5e2e33c8d0565dcc9030eadb227695'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_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
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActionController::Base.wrap_parameters :format => [:json]
8
+
9
+ # Disable root element in JSON by default.
10
+ if defined?(ActiveRecord)
11
+ ActiveRecord::Base.include_root_in_json = false
12
+ end
@@ -0,0 +1,5 @@
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.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount ErpCommunicationEvents::Engine => "/erp_communication_events"
3
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
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; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
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; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
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; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>