aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/apps/jenkinsApp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/webapp/apps/jenkinsApp')
-rwxr-xr-xsrc/main/resources/webapp/apps/jenkinsApp/build.html2
-rwxr-xr-xsrc/main/resources/webapp/apps/jenkinsApp/jenkinsApp.js10
-rwxr-xr-xsrc/main/resources/webapp/apps/jenkinsApp/job.html8
-rwxr-xr-xsrc/main/resources/webapp/apps/jenkinsApp/server-list.html2
-rwxr-xr-xsrc/main/resources/webapp/apps/jenkinsApp/server.html20
5 files changed, 30 insertions, 12 deletions
diff --git a/src/main/resources/webapp/apps/jenkinsApp/build.html b/src/main/resources/webapp/apps/jenkinsApp/build.html
index 13e3b8b..61411f5 100755
--- a/src/main/resources/webapp/apps/jenkinsApp/build.html
+++ b/src/main/resources/webapp/apps/jenkinsApp/build.html
@@ -14,7 +14,7 @@
</ul>
<h3>Overview</h3>
- <table class="table">
+ <table class="table details-table">
<tbody>
<tr>
<th>Timestamp</th>
diff --git a/src/main/resources/webapp/apps/jenkinsApp/jenkinsApp.js b/src/main/resources/webapp/apps/jenkinsApp/jenkinsApp.js
index f59c107..ea8eed8 100755
--- a/src/main/resources/webapp/apps/jenkinsApp/jenkinsApp.js
+++ b/src/main/resources/webapp/apps/jenkinsApp/jenkinsApp.js
@@ -13,7 +13,15 @@ function NavTabsService($location) {
var onClick = function(tab) {
currentTab = tab;
- currentIndex = _.indexOf(tabs, tab);
+ var x = _.indexOf(tabs, tab);
+ if(x == -1) {
+ x = _.indexOf(keys, tab);
+ if(x == -1) {
+ throw "Unknown tab: " + tab;
+ }
+ }
+
+ currentIndex = x;
$location.search(name, keys[currentIndex]);
};
diff --git a/src/main/resources/webapp/apps/jenkinsApp/job.html b/src/main/resources/webapp/apps/jenkinsApp/job.html
index 4f21fad..91527dc 100755
--- a/src/main/resources/webapp/apps/jenkinsApp/job.html
+++ b/src/main/resources/webapp/apps/jenkinsApp/job.html
@@ -14,7 +14,7 @@
<h3>Overview</h3>
- <table class="table">
+ <table class="table details-table">
<tbody>
<tr>
<th>URL</th>
@@ -40,7 +40,11 @@
<tr ng-repeat="build in builds.rows" class="{{{true: 'success', false: 'error'}[build.success]}}">
<td>{{build.timestamp | date:'medium'}}</td>
<td>{{build.result}}</td>
- <td><a class="btn" href="/jenkins/#/server/{{serverUuid}}/job/{{jobUuid}}/build/{{build.uuid}}"><i class="icon-chevron-right"></i></a></td>
+ <td>
+ <a class="btn btn-mini" href="/jenkins/#/server/{{serverUuid}}/job/{{jobUuid}}/build/{{build.uuid}}">
+ <i class="icon-chevron-right"></i>
+ </a>
+ </td>
</tr>
</tbody>
<tfoot>
diff --git a/src/main/resources/webapp/apps/jenkinsApp/server-list.html b/src/main/resources/webapp/apps/jenkinsApp/server-list.html
index 93e5e9e..7319fc7 100755
--- a/src/main/resources/webapp/apps/jenkinsApp/server-list.html
+++ b/src/main/resources/webapp/apps/jenkinsApp/server-list.html
@@ -24,7 +24,7 @@
<td>{{server.url}}</td>
<td>{{server.enabled}}</td>
<td><a href="{{server.url}}">Visit</a></td>
- <td><a class="btn" href="/jenkins/#/server/{{server.uuid}}"><i class="icon-chevron-right"></i></a>
+ <td><a class="btn btn-mini" href="/jenkins/#/server/{{server.uuid}}"><i class="icon-chevron-right"></i></a>
</td>
</tr>
</tbody>
diff --git a/src/main/resources/webapp/apps/jenkinsApp/server.html b/src/main/resources/webapp/apps/jenkinsApp/server.html
index bf54bb8..2cfd4db 100755
--- a/src/main/resources/webapp/apps/jenkinsApp/server.html
+++ b/src/main/resources/webapp/apps/jenkinsApp/server.html
@@ -20,7 +20,7 @@
<div ng-show="navTabs.selectedIndex() == 0" class="row">
<div class="span12">
<h3>Overview</h3>
- <table class="table">
+ <table class="table details-table">
<tbody>
<tr>
<th>URL</th>
@@ -32,7 +32,7 @@
</tr>
<tr>
<th>Number of jobs</th>
- <td>{{server.jobCount}}</td>
+ <td><a href="" ng-click="navTabs.onClick('jobs')">{{server.jobCount}}</a></td>
</tr>
<tr>
<th>Number of builds</th>
@@ -57,12 +57,16 @@
</form>
</div>
<div class="span12">
- <table class="table">
+ <table class="table table-striped align-middle">
<tbody>
<tr ng-repeat="job in jobs.rows">
<td>{{job.displayName}}</td>
<td>{{job.createdDate | date:'medium'}}</td>
- <td><a class="btn" href="/jenkins/#/server/{{server.uuid}}/job/{{job.uuid}}"><i class="icon-chevron-right"></i></a></td>
+ <td>
+ <a class="btn btn-mini" href="/jenkins/#/server/{{server.uuid}}/job/{{job.uuid}}">
+ <i class="icon-chevron-right"></i>
+ </a>
+ </td>
</tr>
</tbody>
<tfoot>
@@ -88,11 +92,13 @@
<table class="table table-striped">
<tbody>
<tr ng-repeat="b in builds.rows">
- <td>{{b.timestamp | date:'medium'}}</td>
+ <td class="span4">{{b.timestamp | date:'medium'}}</td>
<td class="span6">{{b.result}}</td>
- <td class="span1"><a class="btn" href="/jenkins/#/server/{{server.uuid}}/job/{{b.job}}">Job</a></td>
+ <td class="span1"><a class="btn btn-mini" href="/jenkins/#/server/{{server.uuid}}/job/{{b.job}}">Job</a></td>
<td class="span1">
- <a class="btn" href="/jenkins/#/server/{{server.uuid}}/job/{{b.job}}/build/{{b.uuid}}"><i class="icon-chevron-right"></i></a>
+ <a class="btn btn-mini" href="/jenkins/#/server/{{server.uuid}}/job/{{b.job}}/build/{{b.uuid}}">
+ <i class="icon-chevron-right"></i>
+ </a>
</td>
</tr>
</tbody>