aboutsummaryrefslogtreecommitdiffstats
path: root/3rd_party/static/testapi-ui/components/guidelines/partials/guidelineDetails.html
blob: 21d17422f823d7a01cd2b2db98161c900f0047ab (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
53
<!--
 Copyright (c) 2019 opnfv.

 All rights reserved. This program and the accompanying materials
 are made available under the terms of the Apache License, Version 2.0
 which accompanies this distribution, and is available at
 http://www.apache.org/licenses/LICENSE-2.0
-->

<!--
HTML for guidelines page for all OpenStack Powered (TM) guideline schemas
This expects the JSON data of the guidelines file to be stored in scope
variable 'guidelines'.
-->

<h3 ng-show="ctrl.showMandatory">{{ctrl.data.mandatory.name}}</h3>
<div ng-repeat="area in ctrl.data.mandatory.value" ng-show="ctrl.showMandatory">
  <h4>{{area.area_name}}</h4>
  <ol class="capabilities">
    <li class="capability-list-item" ng-repeat="api in area.value">
      <span class="capability-name">{{api.api_name}}</span><br>
      Area: <em>{{area.area_name}}</em><br>
      Status: <span>Mandatory</span><br>

      <a ng-click="showTests = !showTests">Tests ({{api.value.length}})</a>
      <ul uib-collapse="!showTests">
        <li ng-repeat="test in api.value">
          <span ng-class="{'glyphicon glyphicon-flag text-warning': capability.flagged.indexOf(test) > -1}"></span>
          {{test}}
        </li>
      </ul>
    </li>
  </ol>
</div>

<h3 ng-show="ctrl.showOptional">{{ctrl.data.optional.name}}</h3>
<div ng-repeat="area in ctrl.data.optional.value" ng-show="ctrl.showOptional">
  <h4>{{area.area_name}}</h4>
  <ol class="capabilities">
    <li class="capability-list-item" ng-repeat="api in area.value">
      <span class="capability-name">{{api.api_name}}</span><br>
      Status: <span>Optional</span><br>

      <a ng-click="showTests = !showTests">Tests ({{api.value.length}})</a>
      <ul uib-collapse="!showTests">
        <li ng-repeat="test in api.value">
          <span ng-class="{'glyphicon glyphicon-flag text-warning': capability.flagged.indexOf(test) > -1}"></span>
          {{test}}
        </li>
      </ul>
    </li>
  </ol>
</div>