travis-web/assets/scripts/app/views/left.coffee
2013-02-21 23:22:54 +01:00

21 lines
516 B
CoffeeScript

@Travis.reopen
ReposView: Travis.View.extend
templateName: 'repos/list'
tabBinding: 'controller.tab'
classRecent: (->
'active' if @get('tab') == 'recent'
).property('tab')
classOwned: (->
classes = []
classes.push('active') if @get('tab') == 'owned'
classes.push('display') if @get('controller.currentUser')
classes.join(' ')
).property('tab', 'controller.currentUser')
classSearch: (->
'active' if @get('tab') == 'search'
).property('tab')