diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-20 10:53:48 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-20 10:53:48 +0100 |
commit | ee86231bc83d50505fca356f808bc7d13a2c9502 (patch) | |
tree | e50af3b405684df97cbb475732552821d06f20c9 /src/main/webapp/apps | |
parent | d1b36d2eae63a4aad321316488c2b8dcee8e9631 (diff) | |
download | esper-testing-ee86231bc83d50505fca356f808bc7d13a2c9502.tar.gz esper-testing-ee86231bc83d50505fca356f808bc7d13a2c9502.tar.bz2 esper-testing-ee86231bc83d50505fca356f808bc7d13a2c9502.tar.xz esper-testing-ee86231bc83d50505fca356f808bc7d13a2c9502.zip |
o Adding breadcrumbs for easier navigation.
Diffstat (limited to 'src/main/webapp/apps')
-rw-r--r-- | src/main/webapp/apps/jenkinsApp/jenkinsApp.js | 16 | ||||
-rw-r--r-- | src/main/webapp/apps/jenkinsApp/server-list.html | 5 | ||||
-rw-r--r-- | src/main/webapp/apps/jenkinsApp/server.html | 11 |
3 files changed, 29 insertions, 3 deletions
diff --git a/src/main/webapp/apps/jenkinsApp/jenkinsApp.js b/src/main/webapp/apps/jenkinsApp/jenkinsApp.js index 5370496..5477039 100644 --- a/src/main/webapp/apps/jenkinsApp/jenkinsApp.js +++ b/src/main/webapp/apps/jenkinsApp/jenkinsApp.js @@ -11,19 +11,31 @@ var jenkinsApp = angular.module('jenkinsApp', ['jenkinsServerService']).config(f // $locationProvider.html5Mode(true); }); -function ServerListCtrl($scope, $route, $routeParams, $location, JenkinsServerService) { +function ServerListCtrl($scope, $location, JenkinsServerService) { JenkinsServerService.query(function (servers) { $scope.servers = servers; }); + $scope.showServers = function (uuid) { + $location.path('/'); + }; + $scope.showServer = function (uuid) { $location.path('/server/' + uuid); }; } -function ServerCtrl($scope, $routeParams, JenkinsServerService) { +function ServerCtrl($scope, $location, $routeParams, JenkinsServerService) { window.x = $routeParams; JenkinsServerService.get({uuid: $routeParams.uuid}, function (server) { $scope.server = server; }); + + $scope.showServers = function (uuid) { + $location.path('/'); + }; + + $scope.showServer = function (uuid) { + $location.path('/server/' + uuid); + }; } diff --git a/src/main/webapp/apps/jenkinsApp/server-list.html b/src/main/webapp/apps/jenkinsApp/server-list.html index 0ca65d6..f335c1f 100644 --- a/src/main/webapp/apps/jenkinsApp/server-list.html +++ b/src/main/webapp/apps/jenkinsApp/server-list.html @@ -1,6 +1,11 @@ <div class="page-header"> <h1>Jenkins Servers</h1> </div> + +<ul class="breadcrumb"> + <li class="active">All Servers</li> +</ul> + <table class="table table-condensed"> <thead> <tr> diff --git a/src/main/webapp/apps/jenkinsApp/server.html b/src/main/webapp/apps/jenkinsApp/server.html index e15f43e..9213c73 100644 --- a/src/main/webapp/apps/jenkinsApp/server.html +++ b/src/main/webapp/apps/jenkinsApp/server.html @@ -2,6 +2,11 @@ <h1>Jenkins Server</h1> </div> +<ul class="breadcrumb"> + <li><a ng-click="showServers()">All Servers</a> <span class="divider">/</span></li> + <li class="active">Server</li> +</ul> + <table class="table"> <tbody> <tr> @@ -14,7 +19,11 @@ </tr> <tr> <th>Visit</th> - <td>{{server.visit}}</td> + <td><a href="{{server.url}}">{{server.url}}</a></td> + </tr> + <tr> + <th>Job Count</th> + <td>{{server.jobCount}}</td> </tr> </tbody> </table> |