diff --git a/assets/scripts/app/views/repo/list.coffee b/assets/scripts/app/views/repo/list.coffee index 8967c6c6..3386f94d 100644 --- a/assets/scripts/app/views/repo/list.coffee +++ b/assets/scripts/app/views/repo/list.coffee @@ -1,14 +1,14 @@ @Travis.reopen ReposView: Travis.View.extend templateName: 'repos/list' - + ReposListView: Em.CollectionView.extend elementId: 'repos' tagName: 'ul' - + emptyView: Ember.View.extend template: Ember.Handlebars.compile('
Loading
') - + itemViewClass: Travis.View.extend repoBinding: 'content' classNames: ['repo'] @@ -16,31 +16,34 @@ selected: (-> @get('content') == @get('controller.selectedRepo') ).property('controller.selectedRepo') - + color: (-> Travis.Helpers.colorForState(@get('repo.lastBuildState')) ).property('repo.lastBuildState') - + + click: -> + @get('controller').transitionToRoute('/' + @get('repo.slug')) + ReposListTabsView: Travis.View.extend templateName: 'repos/list/tabs' tabBinding: 'controller.tab' currentUserBinding: 'controller.currentUser.id' - + activate: (name) -> @get('controller').transitionToRoot() @get('controller').activate(name) - + classRecent: (-> 'active' if @get('tab') == 'recent' ).property('tab') - + classOwned: (-> classes = [] classes.push('active') if @get('tab') == 'owned' classes.push('display-inline') if @get('currentUser') classes.join(' ') ).property('tab', 'currentUser') - + classSearch: (-> 'active' if @get('tab') == 'search' - ).property('tab') + ).property('tab') \ No newline at end of file