Skip to content
Snippets Groups Projects
Commit c0e190c4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Styled error messages. Raise exception if build not found

parent 4ef8a014
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -13,6 +13,8 @@ class BuildsController < ApplicationController
end.limit(1).first
 
 
raise ActiveRecord::RecordNotFound unless @build
@builds = @builds.paginate(:page => params[:page], :per_page => 20)
end
 
Loading
Loading
Loading
Loading
@@ -3,13 +3,24 @@
<head>
<title>The page you were looking for doesn't exist (404)</title>
<style type="text/css">
body { background-color: #eee; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 500px;
padding: 0 4em;
margin: 4em auto 0 auto;
body {
background: #5BC;
color: #FFF;
text-align: center;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin:0;
width: 800px;
margin: auto;
font-size: 14px;
text-shadow: 0 1px 1px #555;
}
h1 {
font-size: 46px;
line-height: 100px;
font-weight: normal;
color: #FFF;
border-bottom: 1px solid #FFF;
}
h1, h2 { color: #aaa; text-shadow: 0 1px 1px #fff }
</style>
</head>
 
Loading
Loading
Loading
Loading
@@ -3,16 +3,24 @@
<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;
body {
background: #5BC;
color: #FFF;
text-align: center;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin:0;
width: 800px;
margin: auto;
font-size: 14px;
text-shadow: 0 1px 1px #555;
}
h1 {
font-size: 46px;
line-height: 100px;
font-weight: normal;
color: #FFF;
border-bottom: 1px solid #FFF;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>
 
Loading
Loading
Loading
Loading
@@ -3,13 +3,24 @@
<head>
<title>We're sorry, but something went wrong (500)</title>
<style type="text/css">
body { background-color: #eee; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 500px;
padding: 0 4em;
margin: 4em auto 0 auto;
body {
background: #5BC;
color: #FFF;
text-align: center;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin:0;
width: 800px;
margin: auto;
font-size: 14px;
text-shadow: 0 1px 1px #555;
}
h1 {
font-size: 46px;
line-height: 100px;
font-weight: normal;
color: #FFF;
border-bottom: 1px solid #FFF;
}
h1, h2 { color: #aaa; text-shadow: 0 1px 1px #fff }
</style>
</head>
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment