aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/apps
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/apps')
-rw-r--r--src/main/webapp/apps/jenkinsApp/jenkinsApp.js16
-rw-r--r--src/main/webapp/apps/jenkinsApp/server-list.html5
-rw-r--r--src/main/webapp/apps/jenkinsApp/server.html11
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>