Skip to content

Commit

Permalink
Merge pull request #1439 from benallard/home_page
Browse files Browse the repository at this point in the history
Add the running builds to the home page
  • Loading branch information
Mikhail Sobolev committed Dec 11, 2014
2 parents 5808476 + 26676e9 commit ea038b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions www/base/src/app/home/home.controller.coffee
@@ -1,5 +1,5 @@
class Home extends Controller
constructor: ($scope, recentStorage) ->
constructor: ($scope, recentStorage, buildbotService) ->
$scope.recent = {}
recentStorage.getAll().then (e) ->
$scope.recent.recent_builders = e.recent_builders
Expand All @@ -8,4 +8,7 @@ class Home extends Controller
recentStorage.clearAll().then ->
recentStorage.getAll().then (e) ->
$scope.recent.recent_builders = e.recent_builders
$scope.recent.recent_builds = e.recent_builds
$scope.recent.recent_builds = e.recent_builds


buildbotService.some('builds', order: '-started_at', complete: false).bind($scope, dest_key:'builds_running')
5 changes: 4 additions & 1 deletion www/base/src/app/home/home.tpl.jade
Expand Up @@ -18,4 +18,7 @@
.col-sm-8
.well
h2 Welcome to buildbot
| Probably we should display information about what's going on currently
h4 {{ builds_running.length }} Build{{ builds_running.length > 1 ? 's' : '' }} running currently
ul
li(ng-repeat="build in builds_running")
buildsummary(buildid="build.buildid")

0 comments on commit ea038b5

Please sign in to comment.