diff options
author | crupest <crupest@outlook.com> | 2019-02-20 00:12:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-20 00:12:18 +0800 |
commit | 5afa4248c5ec67d361a8f75e0ec0f1d12778e266 (patch) | |
tree | 6fe1939721b1f20381225feac75f778f6822a865 /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html | |
parent | 1f0a978ad2b8e5bcd57eef37baca93e00fd6b20b (diff) | |
download | timeline-5afa4248c5ec67d361a8f75e0ec0f1d12778e266.tar.gz timeline-5afa4248c5ec67d361a8f75e0ec0f1d12778e266.tar.bz2 timeline-5afa4248c5ec67d361a8f75e0ec0f1d12778e266.zip |
Add sample on todo page.
Diffstat (limited to 'Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html')
-rw-r--r-- | Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html b/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html index 3a80e4eb..ce6eb2ed 100644 --- a/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html +++ b/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html @@ -1,9 +1,21 @@ <mat-progress-bar *ngIf="!items" mode="indeterminate"></mat-progress-bar> <mat-list> - <mat-list-item *ngFor="let item of items"> - <mat-card> - <span class="item-id">{{item.id}}</span> {{item.title}} - </mat-card> + <mat-list-item *ngFor="let item of items; let i = index" style="height:unset;"> + <div class="item-box" [class.first-item-box]="i === 0"> + <mat-card [class.align-self-bottom]="i === 0"> + <span class="item-id" [class.item-id-closed]="item.closed" + [class.item-id-open]="!item.closed">{{item.id}}</span> + {{item.title}} + </mat-card> + <div class="sample-box" *ngIf="i === 0"> + <div class="mat-caption"> + <span class="item-id-sample item-id-open"></span> means working now. + </div> + <div class="mat-caption"> + <span class="item-id-sample item-id-closed"></span> means completed. + </div> + </div> + </div> </mat-list-item> </mat-list> |