|
1 | 1 | <div class="card mat-elevation-z2">
|
2 | 2 | <div class="header">
|
3 | 3 | <mat-icon>computer</mat-icon>
|
4 |
| - <p>Notebook Servers</p> |
| 4 | + <p>{{ "resourceTable.title" | translate }}</p> |
5 | 5 |
|
6 | 6 | <div class="spacer"></div>
|
7 | 7 |
|
8 | 8 | <a routerLink="/new">
|
9 | 9 | <button mat-button id="add-nb" color="accent">
|
10 |
| - <mat-icon>add</mat-icon>NEW SERVER |
| 10 | + <mat-icon>add</mat-icon>{{ "resourceTable.btnNewServer" | translate }} |
11 | 11 | </button>
|
12 | 12 | </a>
|
13 | 13 | </div>
|
|
17 | 17 | <table mat-table [dataSource]="notebooks" matSort>
|
18 | 18 | <!-- Status Column -->
|
19 | 19 | <ng-container matColumnDef="status">
|
20 |
| - <th mat-header-cell *matHeaderCellDef>Status</th> |
| 20 | + <th mat-header-cell *matHeaderCellDef> |
| 21 | + {{ "resourceTable.thStatus" | translate }} |
| 22 | + </th> |
21 | 23 | <td mat-cell *matCellDef="let elem">
|
22 | 24 | <!-- Running -->
|
23 | 25 | <mat-icon
|
24 | 26 | *ngIf="elem.status === 'running'"
|
25 | 27 | [ngClass]="['running', 'status']"
|
26 |
| - [matTooltip]="elem.reason" |
| 28 | + matTooltip="{{ 'resourceTable.tooltipRunning' | translate }}" |
27 | 29 | >check_circle
|
28 | 30 | </mat-icon>
|
29 | 31 |
|
30 | 32 | <!-- Warning -->
|
31 | 33 | <mat-icon
|
32 | 34 | *ngIf="elem.status === 'warning'"
|
33 | 35 | [ngClass]="['warning', 'status']"
|
34 |
| - [matTooltip]="elem.reason" |
| 36 | + matTooltip="{{ 'resourceTable.tooltipWarning' | translate }}" |
35 | 37 | >warning
|
36 | 38 | </mat-icon>
|
37 | 39 |
|
38 | 40 | <!-- Error -->
|
39 | 41 | <mat-icon
|
40 | 42 | *ngIf="elem.status === 'error'"
|
41 | 43 | [ngClass]="['error', 'status']"
|
42 |
| - [matTooltip]="elem.reason" |
| 44 | + matTooltip="{{ 'resourceTable.tooltipError' | translate }}" |
43 | 45 | >clear
|
44 | 46 | </mat-icon>
|
45 | 47 |
|
46 | 48 | <!-- Waiting -->
|
47 | 49 | <mat-spinner
|
48 | 50 | *ngIf="elem.status === 'waiting'"
|
49 |
| - [matTooltip]="elem.reason" |
| 51 | + matTooltip="{{ 'resourceTable.tooltipWaiting' | translate }}" |
50 | 52 | diameter="24"
|
51 | 53 | class="inline"
|
52 | 54 | >
|
|
56 | 58 |
|
57 | 59 | <!-- Name Column -->
|
58 | 60 | <ng-container matColumnDef="name">
|
59 |
| - <th mat-header-cell *matHeaderCellDef>Name</th> |
| 61 | + <th mat-header-cell *matHeaderCellDef> |
| 62 | + {{ "resourceTable.thName" | translate }} |
| 63 | + </th> |
60 | 64 | <td mat-cell *matCellDef="let elem">{{ elem.name }}</td>
|
61 | 65 | </ng-container>
|
62 | 66 |
|
63 | 67 | <!-- Age Column -->
|
64 | 68 | <ng-container matColumnDef="age">
|
65 |
| - <th mat-header-cell *matHeaderCellDef>Age</th> |
| 69 | + <th mat-header-cell *matHeaderCellDef> |
| 70 | + {{ "resourceTable.thAge" | translate }} |
| 71 | + </th> |
66 | 72 | <td mat-cell *matCellDef="let elem">{{ elem.age }}</td>
|
67 | 73 | </ng-container>
|
68 | 74 |
|
69 | 75 | <!-- Image Column -->
|
70 | 76 | <ng-container matColumnDef="image">
|
71 |
| - <th mat-header-cell *matHeaderCellDef>Image</th> |
| 77 | + <th mat-header-cell *matHeaderCellDef> |
| 78 | + {{ "resourceTable.thImage" | translate }} |
| 79 | + </th> |
72 | 80 | <td mat-cell *matCellDef="let elem">
|
73 | 81 | <span [matTooltip]="elem.image">{{ elem.shortImage }}</span>
|
74 | 82 | </td>
|
75 | 83 | </ng-container>
|
76 | 84 |
|
77 | 85 | <!-- CPU Column -->
|
78 | 86 | <ng-container matColumnDef="cpu">
|
79 |
| - <th mat-header-cell *matHeaderCellDef>CPU</th> |
| 87 | + <th mat-header-cell *matHeaderCellDef> |
| 88 | + {{ "resourceTable.thCpu" | translate }} |
| 89 | + </th> |
80 | 90 | <td mat-cell *matCellDef="let elem">{{ elem.cpu }}</td>
|
81 | 91 | </ng-container>
|
82 | 92 |
|
83 | 93 | <!-- Memory Column -->
|
84 | 94 | <ng-container matColumnDef="memory">
|
85 |
| - <th mat-header-cell *matHeaderCellDef>Memory</th> |
| 95 | + <th mat-header-cell *matHeaderCellDef> |
| 96 | + {{ "resourceTable.thMemory" | translate }} |
| 97 | + </th> |
86 | 98 | <td mat-cell *matCellDef="let elem">{{ elem.memory }}</td>
|
87 | 99 | </ng-container>
|
88 | 100 |
|
89 | 101 | <!-- Volumes Column -->
|
90 | 102 | <ng-container matColumnDef="volumes">
|
91 |
| - <th mat-header-cell *matHeaderCellDef>Volumes</th> |
| 103 | + <th mat-header-cell *matHeaderCellDef> |
| 104 | + {{ "resourceTable.thVolumes" | translate }} |
| 105 | + </th> |
92 | 106 | <td mat-cell *matCellDef="let elem">
|
93 | 107 | <button mat-icon-button [matMenuTriggerFor]="volsMenu">
|
94 | 108 | <mat-icon>more_vert</mat-icon>
|
|
113 | 127 | color="accent"
|
114 | 128 | [disabled]="elem.status !== 'running'"
|
115 | 129 | >
|
116 |
| - CONNECT |
| 130 | + {{ "resourceTable.btnConnect" | translate }} |
117 | 131 | </button>
|
118 | 132 |
|
119 | 133 | <button
|
|
0 commit comments