fix double link in build tiles, better error message for owner

This commit is contained in:
Lisa P 2015-10-05 22:44:29 +02:00
parent f41a6d0e34
commit 12ac35a123
4 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

@ -1,5 +1,5 @@
{{#if build.number}}
{{#link-to "build" build.repository.slug build.id class="dropup-trigger"}}
{{#link-to "build" build.repository build.id class="dropup-trigger"}}
{{status-icon status=build.state}}
{{build.last_build.state}}

View File

@ -1 +1 @@
foo
There was an error.