summaryrefslogtreecommitdiffstats
path: root/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/main-table.html
blob: fcf6dedf1cb9efc8eae216f0e596c6011af2a1c9 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<table class="table mb0 table-files">
    <thead>
        <tr>
            <th>
                <a href="" ng-click="order('model.name')">
                    Name
                    <span class="sortorder" ng-show="predicate[1] === 'model.name'" ng-class="{reverse:reverse}"></span>
                </a>
            </th>
              <th class="hidden-sm hidden-xs">
                <a href="" ng-click="order('model.version')">
                    Version
                    <span class="sortorder" ng-show="predicate[1] === 'model.version'" ng-class="{reverse:reverse}"></span>
                </a>
            </th>
            <th class="hidden-sm hidden-xs">
                <a href="" ng-click="order('model.date')">
                    Date
                    <span class="sortorder" ng-show="predicate[1] === 'model.date'" ng-class="{reverse:reverse}"></span>
                </a>
            </th>
              <th class="hidden-sm hidden-xs">
                <a href="" ng-click="order('model.createdBy')">
                    Created By
                    <span class="sortorder" ng-show="predicate[1] === 'model.createdBy'" ng-class="{reverse:reverse}"></span>
                </a>
            </th>
              <th class="hidden-sm hidden-xs">
                <a href="" ng-click="order('model.modifiedBy')">
                   Modified By
                    <span class="sortorder" ng-show="predicate[1] === 'model.modifiedBy'" ng-class="{reverse:reverse}"></span>
                </a>
            </th>
             <th class="hidden-sm hidden-xs">
                <a href="">
                   Watch Policy
                    <span  ng-class="{reverse:reverse}"></span>
                </a>
            </th>
            <!-- <th class="text-right">
            <a>Watch Policy</a></th> -->
        </tr>
    </thead>
    <tbody class="file-item">
        <tr ng-show="policyNavigator.requesting">
            <td colspan="5">
                <div ng-include="config.tplPath + '/spinner.html'"></div>
            </td>
        </tr>
        <tr ng-show="!policyNavigator.requesting && policyNavigator.fileList.length < 1 && !policyNavigator.error">
            <td colspan="5">
                No Policy's in Scope...
            </td>
        </tr>
        <tr ng-show="!policyNavigator.requesting && policyNavigator.error">
            <td colspan="5">
                {{ policyNavigator.error }}
            </td>
        </tr>
        <tr ng-repeat="item in policyNavigator.fileList | filter: {model:{name: query}} | orderBy:predicate:reverse" ng-show="!policyNavigator.requesting">
            <td ng-right-click="touch(item)">
                <a href="" ng-click="smartClick(item)" title="{{item.model.name}} ({{item.model.sizeKb()}}kb)">
                    <i class="glyphicon glyphicon-folder-close" ng-show="item.model.type === 'dir'"></i>
                    <i class="glyphicon glyphicon-file" ng-show="item.model.type === 'file'"></i>
                    {{item.model.name | strLimit : 64}}
                </a>
            </td>
            <td class="hidden-xs">
                {{item.model.version}}
            </td>
            <td class="hidden-sm hidden-xs">
                {{item.model.date | formatDate }}
            </td>
            <td class="hidden-sm hidden-xs">
                {{item.model.createdBy}}
            </td>
            <td class="hidden-sm hidden-xs">
                {{item.model.modifiedBy}}
            </td>
            <td  class="text-right">
                <div ng-include="config.tplPath + '/item-toolbar.html'"></div>
            </td>
        </tr>
    </tbody>
</table>