add 500.html, delete 500 from app

This commit is contained in:
Lisa Passing 2015-02-17 14:17:10 +01:00
parent 258300fb21
commit 239aab2861
4 changed files with 43 additions and 19 deletions

View File

@ -52,7 +52,6 @@ Router.map ->
@resource 'account', path: '/:login'
@route 'info', path: '/info'
@route 'error500', path: '/500'
@route 'error404', path: '/*path'
`export default Router`

View File

@ -1,11 +0,0 @@
<div class="error-bg full-size">
<div class="hill-left full-size"></div>
<div class="hill-right full-size"></div>
<div class="shadow-left full-size"></div>
<div class="shadow-right full-size"></div>
<div class="road full-size"></div>
</div>
<div class="error-text">
<h1>Something went wrong</h1>
<p>It looks like something went wrong with your request.<br>Please try again later.</p>
</div>

View File

@ -1,7 +0,0 @@
`import BasicView from 'travis/views/basic'`
View = BasicView.extend
layoutName: 'layouts/error'
classNames: ['error error500']
`export default View`

43
public/500.html Normal file
View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Travis CI - 500</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,800" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="../assets/travis.css">
</head>
<body>
<div class="application">
<div class="ember-view error error500">
<div id="top">
<div class="row">
<div class="small-2 medium-2 columns" id="logo">
<h1><a href="/" class="ember-view">Home</a></h1>
</div>
<ul id="navigation">
<li><a href="http://blog.travis-ci.com/">Blog</a></li>
<li><a href="http://www.traviscistatus.com/">Status</a></li>
</ul>
</div>
</div>
<main class="main main--error" role="main">
<div class="error-bg full-size">
<div class="hill-left full-size"></div>
<div class="hill-right full-size"></div>
<div class="shadow-left full-size"></div>
<div class="shadow-right full-size"></div>
<div class="road full-size"></div>
</div>
<div class="error-text">
<h1>Something went wrong</h1>
<p>It looks like something went wrong with your request.<br>Please try again later.</p>
</div>
</main>
</div>
</div>
</body>
</html>