| .. | .. |
|---|
| 1 | 1 | <td-layout-card-over cardWidth="70"> |
|---|
| 2 | 2 | <md-toolbar role="toolbar" class="mat-secondary"> |
|---|
| 3 | 3 | <span class="push-left-sm"> |
|---|
| 4 | | - <span class="md-title" i18n>Applications</span> |
|---|
| 4 | + <span class="md-title" i18n>Users</span> |
|---|
| 5 | 5 | </span> |
|---|
| 6 | 6 | <span class="push-left-sm" *ngIf="filteredItems < data.length"> |
|---|
| 7 | 7 | <span class="md-body-1">{{filteredItems}} of {{data.length}} applications filtered</span> |
|---|
| .. | .. |
|---|
| 20 | 20 | [sortBy]="sortBy" |
|---|
| 21 | 21 | (sortChange)="sort($event)" |
|---|
| 22 | 22 | style="width: 100%"> |
|---|
| 23 | | - <template tdDataTableTemplate="creation_timestamp" let-row="row" let-value="value"> |
|---|
| 24 | | - <span>{{value | date: 'medium'}}</span> |
|---|
| 23 | + <template tdDataTableTemplate="fullname" let-row="row" let-value="value"> |
|---|
| 24 | + <span>{{row.first_name}} {{row.last_name || ''}}</span> |
|---|
| 25 | + </template> |
|---|
| 26 | + <template tdDataTableTemplate="email" let-row="row" let-value="value"> |
|---|
| 27 | + <div layout="row" *ngIf="value"> |
|---|
| 28 | + <a md-button color="primary" [href]="'mailto:' + value + '?subject=SeCuris'">{{value}}</a> |
|---|
| 29 | + </div> |
|---|
| 30 | + </template> |
|---|
| 31 | + <template tdDataTableTemplate="lastLogin" let-row="row" let-value="value"> |
|---|
| 32 | + <span *ngIf="value">{{value | timeAgo }}</span> |
|---|
| 25 | 33 | </template> |
|---|
| 26 | 34 | <template tdDataTableTemplate="menu" let-row="row" let-index="index"> |
|---|
| 27 | 35 | <div layout="row" layout-align="end center"> |
|---|
| 28 | | - <button md-icon-button (click)="edit(row.id)" color="primary"><md-icon>edit</md-icon></button> |
|---|
| 36 | + <button md-icon-button (click)="edit(row.username)" color="primary"><md-icon>edit</md-icon></button> |
|---|
| 29 | 37 | </div> |
|---|
| 30 | 38 | </template> |
|---|
| 31 | 39 | </td-data-table> |
|---|