blob: c5ab3cc110e2a02ebdd18778f691e5ccda7e09df (
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
<!--
~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<div class="activity-log">
<div class="title-wrapper">
<div class="top-search">
<input type="text"
class="search-text"
placeholder="Search"
data-ng-model="searchBind"
data-tests-id="main-menu-input-search"
ng-model-options="{ debounce: 500 }" />
<span class="w-sdc-search-icon magnification"></span>
</div>
</div>
<div class="table-container-flex">
<div class="table" data-ng-class="{'view-mode': isViewMode()}">
<!-- Table headers -->
<div class="head flex-container">
<div class="table-header head-row hand flex-item" ng-repeat="header in tableHeadersList track by $index" data-ng-click="sort(header.property)">{{header.title}}
<span data-ng-show="sortBy === header.property" class="table-header-sort-arrow" data-ng-class="{'down': reverse, 'up':!reverse}"> </span>
</div>
</div>
<!-- Table body -->
<div class="body">
<perfect-scrollbar suppress-scroll-x="true" scroll-y-margin-offset="0" include-padding="true" class="scrollbar-container">
<!-- In case the logs are empty -->
<div data-ng-if="!activityLog || activityLog.length===0" class="no-row-text">
There are no logs to display
</div>
<!-- Loop on logs list -->
<div data-ng-repeat="item in activityLog | filter: searchBind | orderBy:sortBy:reverse track by $index"
data-ng-init="item.dateFormat = ( item.TIMESTAMP.replace(' UTC', '') | stringToDateFilter | date: 'MM/dd/yyyy':'UTC')+' | '+(item.TIMESTAMP.replace(' UTC', '') | stringToDateFilter | date: 'shortTime':'UTC' )"
class="flex-container data-row"
data-ng-class="{'selected': component === selectedComponent}"
data-ng-click="doSelectComponent(component);"
>
<!-- Date -->
<div class="table-col-general flex-item" sdc-smart-tooltip>
{{item.dateFormat}}
</div>
<!-- Action -->
<div class="table-col-general flex-item" sdc-smart-tooltip>
{{item.ACTION}}
</div>
<!-- Comment -->
<div class="table-col-general flex-item" sdc-smart-tooltip>
{{item.COMMENT}}
</div>
<!-- Username -->
<div class="table-col-general flex-item" sdc-smart-tooltip>
{{item.MODIFIER}}
</div>
<!-- Status -->
<div class="table-col-general flex-item" sdc-smart-tooltip>
{{item.STATUS}}
<span data-ng-class="{'success': item.STATUS>='200' && item.STATUS<='204','error': item.STATUS<'200' || item.STATUS>='300'}"></span>
</div>
</div>
</perfect-scrollbar>
</div><!-- End table body -->
</div><!-- End table -->
</div><!-- End table-container-flex -->
</div>
<!--<div ng-repeat="activityDate in activityDateArray " class="w-sdc-component-viewer-right-activity-log" >
<div class="w-sdc-component-viewer-right-activity-log-date" >{{activityDate | date: 'longDate'}}</div>
<div ng-repeat="activity in activityLog[activityDate] | orderBy: '-TIMESTAMP'">
<div class="w-sdc-component-viewer-right-activity-log-time">{{activity.TIMESTAMP.replace(" UTC", '') | stringToDateFilter | date: 'mediumTime':'UTC'}}</div>
<div class="w-sdc-component-viewer-right-activity-log-content">{{"Action: " + parseAction(activity.ACTION) + " Performed by: " + activity.MODIFIER + " Status: " + activity.STATUS}}</div>
</div>
</div>-->
|