Skip to content

Commit 16144a8

Browse files
libruchaJohannes Stelzer
authored andcommitted
Add health-section rendering template for config server.
fixes #101
1 parent e7fd7a5 commit 16144a8

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

spring-boot-admin-server-ui/app/views/apps/details.html

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@
174174
</dd>
175175

176176
<dd ng-repeat="(name, health) in health" ng-if="isChildHealth(name, health)" >
177-
<ng-include src="'health.html'" ng-if="name != 'diskSpace'"></ng-include>
177+
<ng-include src="'health.html'" ng-if="name != 'diskSpace' && name != 'configServer'"></ng-include>
178178
<ng-include src="'health-diskSpace.html'" ng-if="name == 'diskSpace'"></ng-include>
179+
<ng-include src="'health-configServer.html'" ng-if="name == 'configServer'"></ng-include>
179180
</dd>
180181
</dl>
181182
</script>
@@ -195,3 +196,34 @@
195196
</dd>
196197
</dl>
197198
</script>
199+
200+
<script type="text/ng-template" id="health-configServer.html">
201+
<dl class="health-status">
202+
<dt>{{name | capitalize}} <span class="status-{{health.status}} pull-right">{{ health.status }}</span></dt>
203+
<dd ng-if="repository.error">
204+
<table style="width:100%;">
205+
<tr class="error">
206+
<td>Error</td><td>{{ repository.error }}</td>
207+
</tr>
208+
</table>
209+
</dd>
210+
<dd>
211+
<dl ng-repeat="repository in health.repositories" class="health-status">
212+
<dt>{{repository.name }}</dt>
213+
<dd>
214+
<table style="width:100%;">
215+
<tr>
216+
<td>Label</td><td>{{ repository.label }}</td>
217+
</tr>
218+
<tr>
219+
<td>Sources</td><td>{{ repository.sources | joinArray:', ' }}</td>
220+
</tr>
221+
<tr>
222+
<td>Profiles</td><td>{{ repository.profiles | joinArray:', ' }}</td>
223+
</tr>
224+
</table>
225+
</dd>
226+
</dl>
227+
</dd>
228+
</dl>
229+
</script>

0 commit comments

Comments
 (0)