Merge pull request #398 from travis-ci/fix-404

Fix 404
This commit is contained in:
Lisa P 2015-10-13 13:02:30 +02:00
commit 3306e5a7e6
5 changed files with 9 additions and 11 deletions

View File

@ -75,7 +75,6 @@ Router.map ->
@route 'repositories', path: '/'
# @route 'running', path: '/running'
@route 'error404', path: '/*path'
# @route 'error404', path: '/404'
@route 'error404', path: '/404'
`export default Router`

View File

@ -23,8 +23,7 @@ Route = TravisRoute.extend
login = transition.params.owner.owner
message = if error.status == 404
# @transitionTo('/404')
"Couldn't find an owner with login \"#{login}\""
@transitionTo('error404')
else
"There was an error while loading data, please try again."

View File

@ -112,11 +112,9 @@
display: block
.hill-right
background-image: url(../images/error/404-hills-right.svg)
@include error-position-img(auto 20vw, 99% 58%)
@include error-position-img(auto 20vw, 99% 60%)
@media #{$medium-up}
@include error-position-img(50vw auto, 99% 58%)
@media #{$large-up}
@include error-position-img(50vw auto, 99% 54%)
.error-excavator
background-image: url(../images/error/excavator.svg)
@include error-position-img(auto 25vh, 71% 83%)

View File

@ -1,6 +1,8 @@
<div id="top" class="top">
{{render 'top'}}
</div>
<header id="top" class="top">
<div class="centered">
{{render "top"}}
</div>
</header>
<main class="main main--error" role="main">
{{yield}}

View File

@ -1,5 +1,5 @@
<div class="wrapper">
<header id="top" class="topbar">
<header id="top" class="top">
<div class="centered">
{{render "top"}}
</div>