blob: ca7cb754515de77db548c4e768591bc9a0134bb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<loader loading="loading"></loader>
<div id="redfish">
<div class="row column">
<div style="max-width: 400px;margin:0">
<img src="../../assets/images/DMTF_Redfish_logo_2017.svg">
</div>
</div>
<div class="row column">
{
<ul style="list-style: none;">
<li ng-repeat="(key, value) in redfishData" ng-include="'recurse'"> </li>
</ul>
}
</div>
</div>
<script type="text/ng-template" id="recurse">
"<b>{{key}}</b>":
<span ng-if="isObject(value) && !isArray(value)">
{
<ul style="list-style: none;">
<li ng-repeat="(key, value) in value" ng-include="'recurse'"> </li>
</ul>
}
</span>
<span ng-if="isArray(value)">
[
<div ng-repeat="val in value" style="margin-left: 2em;">
<span ng-if="isObject(val) && !isArray(val)">
{
<ul style="list-style: none;">
<li ng-repeat="(key, value) in val" ng-include="'recurse'"> </li>
</ul>
}
<span ng-if="!$last">,</span>
</br>
</span>
<span ng-if="!isObject(val) && !isArray(val)">
{{val | json }}
<span ng-if="!$last">,</span>
</span>
</div>
]
</span>
<span ng-if="!isObject(value) && !isArray(value)">
<a ng-if="key.indexOf('@odata.id') != -1" ng-href="#{{value}}">"{{value}}"</a>
<span ng-if="key.indexOf('@odata.id') == -1" ng-href="#{{value}}">{{value | json}}</span>
</span>
<span ng-if="!$last">,</span>
</br>
</script>
|