Permalink
Browse files

Finished error code views and removed redudant batch script files.

  • Loading branch information...
1 parent 84022dc commit 74d71bc0334de3edc6198b3b52bce72db2a26837 Billy Dallimore committed Feb 4, 2014
@@ -62,6 +62,10 @@ textarea {
margin-left:7px;
color:#e54b5d;
}
+.container-error {
+ padding: 30px 0;
+ text-align: center;
+}
@import "product";
@import "category";
@@ -1 +1,15 @@
-%h1 404 - Not found
+- content_for :title, '404 Error'
+
+.darker-stripe
+.container
+ .push-up.blocks-spacer
+ .row
+ %section.span12
+ %p.container-404
+ = image_tag 'webmarket/404.png', :alt => '404 Error', :height => 161, :width => 394
+ %hr/
+ %p.center-align.size-16
+ Looks like something went wrong! The page you were looking for is not here.
+ %p.center-align.size-16.push-down-50
+ Go
+ = "#{link_to 'Home', root_path}.".html_safe
@@ -1 +1,15 @@
-%h1 422 - Unprocessable entity
+- content_for :title, '422 Error'
+
+.darker-stripe
+.container
+ .push-up.blocks-spacer
+ .row
+ %section.span12
+ .container-error
+ %h1 422 Error
+ %hr/
+ %p.center-align.size-16
+ The change you wanted was rejected. Maybe you tried to change something you didn't have access to.
+ %p.center-align.size-16.push-down-50
+ Go
+ = "#{link_to 'Home', root_path}.".html_safe
@@ -1 +1,15 @@
-%h1 500 - Internal error
+- content_for :title, '500 Error'
+
+.darker-stripe
+.container
+ .push-up.blocks-spacer
+ .row
+ %section.span12
+ .container-error
+ %h1 500 Error
+ %hr/
+ %p.center-align.size-16
+ We are sorry, but something went wrong. We have been notified of the issue.
+ %p.center-align.size-16.push-down-50
+ Go
+ = "#{link_to 'Home', root_path}.".html_safe
View
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>The page you were looking for doesn't exist (404)</title>
- <style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
- div.dialog {
- width: 25em;
- padding: 0 4em;
- margin: 4em auto 0 auto;
- border: 1px solid #ccc;
- border-right-color: #999;
- border-bottom-color: #999;
- }
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
- </style>
-</head>
-
-<body>
- <!-- This file lives in public/404.html -->
- <div class="dialog">
- <h1>The page you were looking for doesn't exist.</h1>
- <p>You may have mistyped the address or the page may have moved.</p>
- </div>
-</body>
-</html>
View
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>The change you wanted was rejected (422)</title>
- <style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
- div.dialog {
- width: 25em;
- padding: 0 4em;
- margin: 4em auto 0 auto;
- border: 1px solid #ccc;
- border-right-color: #999;
- border-bottom-color: #999;
- }
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
- </style>
-</head>
-
-<body>
- <!-- This file lives in public/422.html -->
- <div class="dialog">
- <h1>The change you wanted was rejected.</h1>
- <p>Maybe you tried to change something you didn't have access to.</p>
- </div>
-</body>
-</html>
View
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>We're sorry, but something went wrong (500)</title>
- <style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
- div.dialog {
- width: 25em;
- padding: 0 4em;
- margin: 4em auto 0 auto;
- border: 1px solid #ccc;
- border-right-color: #999;
- border-bottom-color: #999;
- }
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
- </style>
-</head>
-
-<body>
- <!-- This file lives in public/500.html -->
- <div class="dialog">
- <h1>We're sorry, but something went wrong.</h1>
- </div>
-</body>
-</html>
@@ -1,6 +0,0 @@
-Order.transaction do
- (1..100).each do |i|
- Order.create(:name => "Customer #{i}", :address => "#{i} Main Street",
- :email => "customer-#{i}@example.com")
- end
-end
@@ -1,5 +0,0 @@
-Product.transaction do
- (1..100).each do |i|
- Product.create(:name => "Linear Actuator #{i}", :description => 'The GLA750 is a compact and lightweight 12V DC (direct current) linear actuator available in six different stroke lengths (travel distances) of 30mm (1 3/16"), 50mm (2"), 100mm (4"), 150mm (6"), 200mm (8") and 300mm (12").Despite its small size the GLA750 is able to provide a pushing or pulling force of up to 750N (76kg, 168lbs) at the rated voltage (and as with any DC motor operation at other voltages is possible with modified operating characteristics).', :weighting => '1000', :stock => "#{i}", :price => "4#{i}", :category_ids => [1,2], :accessory_ids => [1], :image_url => "/uploads/product/15_thdwuhdadhihwad/original/GR12-12V-planetary-gearmotor-overview.jpg")
- end
-end

0 comments on commit 74d71bc

Please sign in to comment.