Add license to policy-engine files
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / policy-models / Editor / templates / main-table.html
1 <!--
2   ============LICENSE_START==================================================
3   ONAP Policy Engine
4   ===========================================================================
5   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6   ===========================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END====================================================
19   -->
20 <table class="table mb0 table-files">
21     <thead>
22         <tr>
23             <th>
24                 <a href="" ng-click="order('model.name')">
25                     Name
26                     <span class="sortorder" ng-show="predicate[1] === 'model.name'" ng-class="{reverse:reverse}"></span>
27                 </a>
28             </th>
29               <th class="hidden-sm hidden-xs">
30                 <a href="" ng-click="order('model.version')">
31                     Version
32                     <span class="sortorder" ng-show="predicate[1] === 'model.version'" ng-class="{reverse:reverse}"></span>
33                 </a>
34             </th>
35             <th class="hidden-sm hidden-xs">
36                 <a href="" ng-click="order('model.date')">
37                     Date
38                     <span class="sortorder" ng-show="predicate[1] === 'model.date'" ng-class="{reverse:reverse}"></span>
39                 </a>
40             </th>
41               <th class="hidden-sm hidden-xs">
42                 <a href="" ng-click="order('model.createdBy')">
43                     Created By
44                     <span class="sortorder" ng-show="predicate[1] === 'model.createdBy'" ng-class="{reverse:reverse}"></span>
45                 </a>
46             </th>
47               <th class="hidden-sm hidden-xs">
48                 <a href="" ng-click="order('model.modifiedBy')">
49                    Modified By
50                     <span class="sortorder" ng-show="predicate[1] === 'model.modifiedBy'" ng-class="{reverse:reverse}"></span>
51                 </a>
52             </th>
53              <th class="hidden-sm hidden-xs">
54                 <a href="">
55                    Watch Policy
56                     <span  ng-class="{reverse:reverse}"></span>
57                 </a>
58             </th>
59             <!-- <th class="text-right">
60             <a>Watch Policy</a></th> -->
61         </tr>
62     </thead>
63     <tbody class="file-item">
64         <tr ng-show="policyNavigator.requesting">
65             <td colspan="5">
66                 <div ng-include="config.tplPath + '/spinner.html'"></div>
67             </td>
68         </tr>
69         <tr ng-show="!policyNavigator.requesting && policyNavigator.fileList.length < 1 && !policyNavigator.error">
70             <td colspan="5">
71                 No Policy's in Scope...
72             </td>
73         </tr>
74         <tr ng-show="!policyNavigator.requesting && policyNavigator.error">
75             <td colspan="5">
76                 {{ policyNavigator.error }}
77             </td>
78         </tr>
79         <tr ng-repeat="item in policyNavigator.fileList | filter: {model:{name: query}} | orderBy:predicate:reverse" ng-show="!policyNavigator.requesting">
80             <td ng-right-click="touch(item)">
81                 <a href="" ng-click="smartClick(item)" title="{{item.model.name}} ({{item.model.sizeKb()}}kb)">
82                     <i class="glyphicon glyphicon-folder-close" ng-show="item.model.type === 'dir'"></i>
83                     <i class="glyphicon glyphicon-file" ng-show="item.model.type === 'file'"></i>
84                     {{item.model.name | strLimit : 64}}
85                 </a>
86             </td>
87             <td class="hidden-xs">
88                 {{item.model.version}}
89             </td>
90             <td class="hidden-sm hidden-xs">
91                 {{item.model.date | formatDate }}
92             </td>
93             <td class="hidden-sm hidden-xs">
94                 {{item.model.createdBy}}
95             </td>
96             <td class="hidden-sm hidden-xs">
97                 {{item.model.modifiedBy}}
98             </td>
99             <td  class="text-right">
100                 <div ng-include="config.tplPath + '/item-toolbar.html'"></div>
101             </td>
102         </tr>
103     </tbody>
104 </table>