diff options
author | 杨宇千 <crupest@outlook.com> | 2019-02-19 16:22:07 +0000 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-02-19 16:22:07 +0000 |
commit | 86a1d2977ac15adc863f087b0e84890f460dc748 (patch) | |
tree | 70160b1387e11e4b236994797842e60c1fbd687f /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html | |
parent | 7d08ce0d0625b8e6a4c6328d9c9d339cc52db4c2 (diff) | |
parent | 133b90cdbafabab0640bfb3179899fb4f3df4dbe (diff) | |
download | timeline-86a1d2977ac15adc863f087b0e84890f460dc748.tar.gz timeline-86a1d2977ac15adc863f087b0e84890f460dc748.tar.bz2 timeline-86a1d2977ac15adc863f087b0e84890f460dc748.zip |
Merged PR 2: Add sample on todo page.
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> |