fix double link in build tiles, better error message for owner
This commit is contained in:
parent
f41a6d0e34
commit
12ac35a123
|
@ -76,5 +76,6 @@ Router.map ->
|
|||
# @route 'running', path: '/running'
|
||||
|
||||
@route 'error404', path: '/*path'
|
||||
@route 'error404', path: '/404'
|
||||
|
||||
`export default Router`
|
||||
|
|
|
@ -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."
|
||||
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -1 +1 @@
|
|||
foo
|
||||
There was an error.
|
Loading…
Reference in New Issue
Block a user