Skip to content

Commit e667c67

Browse files
author
Johannes Stelzer
committed
User Dropdown to get morce free space in overview
1 parent c4cbc3a commit e667c67

File tree

1 file changed

+38
-32
lines changed

1 file changed

+38
-32
lines changed

spring-boot-admin-server-ui/app/views/overview.html

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,42 @@ <h2 >Spring-Boot applications<br>
22
<small>Here you'll find all Spring-Boot applications that registered themselves at this admin application.</small>
33
</h2>
44
<table class="table table-striped">
5-
<thead>
6-
<tr>
7-
<th><span class="sortable" ng-class="orderByCssClass('name')" ng-click="orderBy('name')">Application</span>
8-
/
9-
<span class="sortable" ng-class="orderByCssClass('url')" ng-click="orderBy('url')">URL</span>
10-
</th>
11-
<th><span class="sortable" ng-class="orderByCssClass('version')" ng-click="orderBy('version')">Version</span></th>
12-
<th>Info</th>
13-
<th colspan="2"><span class="sortable" ng-class="orderByCssClass('status')" ng-click="orderBy('status')">Status</span></th>
14-
</tr>
15-
</thead>
16-
<tbody>
17-
<tr ng-repeat="application in applications|orderBy:order.column:order.descending track by application.id">
18-
<td>{{ application.name }}<br/><span class="muted">{{ application.url }}</span></td>
19-
<td>{{ application.version }}</td>
20-
<td><span ng-repeat="(name, value) in application.info track by name">{{name}}: {{value}}<br></span></td>
21-
<td><span class="status-{{application.status}}">{{ application.status }}</span>
22-
<span ng-show="application.refreshing" class="refresh"></span></td>
23-
<td>
24-
<div class="btn-group pull-right" ng-hide="application.status == null || application.status == 'OFFLINE'">
25-
<a ng-disabled="!application.providesLogfile" target="_self" class="btn btn-success" ng-href="{{application.providesLogfile ? application.url + '/logfile' :''}}"><i class="icon-file icon-white"></i>Log</a>
26-
<a ui-sref="apps.details.metrics({id: application.id})" class="btn btn-success">Details</a>
27-
<a ui-sref="apps.logging({id: application.id})" class="btn btn-success">Logging</a>
28-
<a ui-sref="apps.jmx({id: application.id})" class="btn btn-success">JMX</a>
29-
<a ui-sref="apps.threads({id: application.id})" class="btn btn-success">Threads</a>
30-
</div>
31-
<div class="btn-group pull-right" ng-show="application.status == 'UNKNOWN' || application.status == 'OFFLINE'">
32-
<a class="btn btn-danger" ng-click="remove(application)"><i class="icon-remove icon-white"></i>Remove</a>
33-
</div>
34-
</td>
35-
</tr>
36-
</tbody>
5+
<thead>
6+
<tr>
7+
<th><span class="sortable" ng-class="orderByCssClass('name')" ng-click="orderBy('name')">Application</span>
8+
/
9+
<span class="sortable" ng-class="orderByCssClass('url')" ng-click="orderBy('url')">URL</span>
10+
</th>
11+
<th><span class="sortable" ng-class="orderByCssClass('version')" ng-click="orderBy('version')">Version</span></th>
12+
<th>Info</th>
13+
<th colspan="2"><span class="sortable" ng-class="orderByCssClass('status')" ng-click="orderBy('status')">Status</span></th>
14+
</tr>
15+
</thead>
16+
<tbody>
17+
<tr ng-repeat="application in applications|orderBy:order.column:order.descending track by application.id">
18+
<td>{{ application.name }}<br/><span class="muted">{{ application.url }}</span></td>
19+
<td>{{ application.version }}</td>
20+
<td><span ng-repeat="(name, value) in application.info track by name">{{name}}: {{value}}<br></span></td>
21+
<td><span class="status-{{application.status}}">{{ application.status }}</span>
22+
<span ng-show="application.refreshing" class="refresh"></span></td>
23+
<td>
24+
<div class="btn-group pull-right" ng-hide="application.status == null || application.status == 'OFFLINE'">
25+
<a ng-disabled="!application.providesLogfile" target="_self" class="btn btn-success" ng-href="{{application.providesLogfile ? application.url + '/logfile' :''}}"><i class="icon-file icon-white"></i>Log</a>
26+
<a ui-sref="apps.details.metrics({id: application.id})" class="btn btn-success">Details</a>
27+
<a class="btn btn-success dropdown-toggle" data-toggle="dropdown">
28+
<span class="caret"></span>
29+
</a>
30+
<ul class="dropdown-menu">
31+
<li><a ui-sref="apps.logging({id: application.id})" >Logging</a></li>
32+
<li><a ui-sref="apps.jmx({id: application.id})" >JMX</a></li>
33+
<li><a ui-sref="apps.threads({id: application.id})" >Threads</a></li>
34+
<li><a ui-sref="apps.trace({id: application.id})" >Trace</a></li>
35+
</ul>
36+
</div>
37+
<div class="btn-group pull-right" ng-show="application.status == 'UNKNOWN' || application.status == 'OFFLINE'">
38+
<a class="btn btn-danger" ng-click="remove(application)"><i class="icon-remove icon-white"></i>Remove</a>
39+
</div>
40+
</td>
41+
</tr>
42+
</tbody>
3743
</table>

0 commit comments

Comments
 (0)