unbreak my-repos
This commit is contained in:
parent
4489f146da
commit
b20bfe51ef
|
@ -20,7 +20,7 @@ Travis.RepositoriesController = Ember.ArrayController.extend
|
|||
@set('content', Travis.Repository.find())
|
||||
|
||||
viewOwned: ->
|
||||
@set('content', Travis.Repository.ownedBy(Travis.get('currentUser.login')))
|
||||
@set('content', Travis.Repository.ownedBy(Travis.app.get('currentUser.login')))
|
||||
|
||||
viewSearch: (params) ->
|
||||
@set('content', Travis.Repository.search(params.search))
|
||||
|
|
|
@ -67,7 +67,7 @@ require 'travis/model'
|
|||
@find()
|
||||
|
||||
ownedBy: (login) ->
|
||||
@find(owner: login, orderBy: 'name')
|
||||
@find(owner_name: login, orderBy: 'name')
|
||||
|
||||
search: (query) ->
|
||||
@find(search: query, orderBy: 'name')
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
classOwned: (->
|
||||
classes = []
|
||||
classes.push('active') if @get('tab') == 'owned'
|
||||
classes.push('display') if Em.get('Travis.currentUser')
|
||||
classes.push('display') if Travis.app.get('currentUser')
|
||||
classes.join(' ')
|
||||
).property('tab', 'Travis.currentUser')
|
||||
|
||||
|
|
|
@ -42,9 +42,9 @@
|
|||
classOwned: (->
|
||||
classes = []
|
||||
classes.push('active') if @get('tab') == 'owned'
|
||||
classes.push('display') if Em.get('Travis.currentUser')
|
||||
classes.push('display') if Travis.app.get('currentUser')
|
||||
classes.join(' ')
|
||||
).property('tab', 'Travis.currentUser')
|
||||
).property('tab', 'Travis.app.currentUser')
|
||||
|
||||
classSearch: (->
|
||||
'active' if @get('tab') == 'search'
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user