summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/usage/usage.component.html
blob: 9321c0d263f16207f0f8bb5477703efc31ebea88 (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
<div id="page-content">
    <div>
      <h1 class="heading-page" id="Usage">Current Usage</h1>
    </div>
      
      <h3 class="heading-small">
        The following table shows all current user sessions. Click the icon to end a user's session.
      </h3>
  
          <table mat-table [dataSource]="users" matSort>
            <ng-container matColumnDef="userId">
              <th mat-header-cell *matHeaderCellDef  id="heading1"> User Id</th>
              <td mat-cell *matCellDef="let rowData"> {{rowData.id}} </td>
            </ng-container>
        
            <ng-container matColumnDef="userName">
              <th mat-header-cell *matHeaderCellDef  id="heading2"> User Name </th>
              <td mat-cell *matCellDef="let rowData"> {{rowData.lastName}} </td>
            </ng-container>
        
            <ng-container matColumnDef="email">
              <th mat-header-cell *matHeaderCellDef  id="heading3">Email</th>
              <td mat-cell *matCellDef="let rowData"> {{rowData.email}}</td>
            </ng-container>
        
            <ng-container matColumnDef="lastAccessTime">
              <th mat-header-cell *matHeaderCellDef  id="heading4"> Last Access Time (minutes)</th>
              <td mat-cell *matCellDef="let rowData" > {{rowData.lastAccess}} </td>
            </ng-container>
    
            <ng-container matColumnDef="timeRemaining">
              <th mat-header-cell *matHeaderCellDef  id="heading5"> Time Remaining (minutes) </th>
              <td mat-cell *matCellDef="let rowData" > {{rowData.remaining}} </td>
            </ng-container>
    
            <ng-container matColumnDef="userSession">
              <th mat-header-cell *matHeaderCellDef  id="heading6"> Expire User Session? </th>
              <td mat-cell *matCellDef="let rowData"> 
                  <div>Current Session</div>
                  <div (click)="removeSession(user.sessionId);" 
                    style="font-size:20px;text-align:center">
                    <a href="javascript:void(0)" *ngIf="rowData.delete=='yes'" class="icon-misc-trash" ></a>
                  </div>
              
              </td>
            </ng-container>
         
        <tr mat-header-row *matHeaderRowDef="usageHeaders"></tr>
        <tr mat-row *matRowDef="let rowData; columns: usageHeaders;">
    
          </table> 
  
  </div>