Skip to content

Commit

Permalink
basic recent builds panel
Browse files Browse the repository at this point in the history
  • Loading branch information
shanzi committed Jun 1, 2015
1 parent 7cec3b9 commit 8b59c42
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Expand Up @@ -3,6 +3,18 @@ class RecentBuilds extends Directive
constructor: ->
return {
restrict: 'E'
controller: '_RecentBuildsController'
controllerAs: 'recent'
bindToController: true
templateUrl: 'views/recent_builds_panel.html'
}


class _RecentBuilds extends Controller
builds: []
constructor: ($scope, buildbotService) ->
buildbotService.all('builds').getList(
complete: true
order:'-complete_at'
limit: 8
).then (data) =>
@builds = data
@@ -1 +1,2 @@
| recent builds panel content
div.build(ng-repeat="build in recent.builds")
build-status(build="build")

0 comments on commit 8b59c42

Please sign in to comment.