James Feist | e8634e6 | 2018-09-07 14:25:48 -0700 | [diff] [blame] | 1 | <loader loading="loading"></loader> |
Ed Tanous | 86caba1 | 2018-12-19 20:57:42 -0800 | [diff] [blame] | 2 | <div id="redfish", class="redfish"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 3 | <div class="row column"> |
Ed Tanous | 86caba1 | 2018-12-19 20:57:42 -0800 | [diff] [blame] | 4 | <div class="logo"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 5 | <img src="../../assets/images/DMTF_Redfish_logo_2017.svg"> |
| 6 | </div> |
| 7 | </div> |
| 8 | <div class="row column"> |
| 9 | { |
Ed Tanous | 86caba1 | 2018-12-19 20:57:42 -0800 | [diff] [blame] | 10 | <ul class="key_value"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 11 | <li ng-repeat="(key, value) in redfishData" ng-include="'recurse'"> </li> |
| 12 | </ul> |
| 13 | } |
| 14 | </div> |
James Feist | e8634e6 | 2018-09-07 14:25:48 -0700 | [diff] [blame] | 15 | </div> |
| 16 | <script type="text/ng-template" id="recurse"> |
| 17 | "<b>{{key}}</b>": |
| 18 | <span ng-if="isObject(value) && !isArray(value)"> |
| 19 | { |
Ed Tanous | 86caba1 | 2018-12-19 20:57:42 -0800 | [diff] [blame] | 20 | <ul class="key_value"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 21 | <li ng-repeat="(key, value) in value" ng-include="'recurse'"> </li> |
| 22 | </ul> |
James Feist | bc5cc7f | 2018-11-13 13:30:02 -0800 | [diff] [blame] | 23 | } |
James Feist | e8634e6 | 2018-09-07 14:25:48 -0700 | [diff] [blame] | 24 | </span> |
| 25 | |
| 26 | <span ng-if="isArray(value)"> |
| 27 | [ |
Ed Tanous | 86caba1 | 2018-12-19 20:57:42 -0800 | [diff] [blame] | 28 | <div ng-repeat="val in value" class="value"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 29 | <span ng-if="isObject(val) && !isArray(val)"> |
| 30 | { |
Ed Tanous | 86caba1 | 2018-12-19 20:57:42 -0800 | [diff] [blame] | 31 | <ul class="key_value"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 32 | <li ng-repeat="(key, value) in val" ng-include="'recurse'"> </li> |
| 33 | </ul> |
James Feist | bc5cc7f | 2018-11-13 13:30:02 -0800 | [diff] [blame] | 34 | } |
| 35 | <span ng-if="!$last">,</span> |
| 36 | </br> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 37 | </span> |
| 38 | <span ng-if="!isObject(val) && !isArray(val)"> |
James Feist | bc5cc7f | 2018-11-13 13:30:02 -0800 | [diff] [blame] | 39 | {{val | json }} |
| 40 | <span ng-if="!$last">,</span> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 41 | </span> |
| 42 | </div> |
James Feist | e8634e6 | 2018-09-07 14:25:48 -0700 | [diff] [blame] | 43 | ] |
| 44 | </span> |
| 45 | |
| 46 | <span ng-if="!isObject(value) && !isArray(value)"> |
| 47 | <a ng-if="key.indexOf('@odata.id') != -1" ng-href="#{{value}}">"{{value}}"</a> |
James Feist | bc5cc7f | 2018-11-13 13:30:02 -0800 | [diff] [blame] | 48 | <span ng-if="key.indexOf('@odata.id') == -1" ng-href="#{{value}}">{{value | json}}</span> |
James Feist | e8634e6 | 2018-09-07 14:25:48 -0700 | [diff] [blame] | 49 | </span> |
James Feist | bc5cc7f | 2018-11-13 13:30:02 -0800 | [diff] [blame] | 50 | <span ng-if="!$last">,</span> |
| 51 | </br> |
James Feist | e8634e6 | 2018-09-07 14:25:48 -0700 | [diff] [blame] | 52 | </script> |