aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-02-20 00:12:18 +0800
committercrupest <crupest@outlook.com>2019-02-20 00:12:18 +0800
commit133b90cdbafabab0640bfb3179899fb4f3df4dbe (patch)
tree70160b1387e11e4b236994797842e60c1fbd687f /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.html
parent1ff6afb0e9fd11ce37ed0206b992514041391761 (diff)
downloadtimeline-133b90cdbafabab0640bfb3179899fb4f3df4dbe.tar.gz
timeline-133b90cdbafabab0640bfb3179899fb4f3df4dbe.tar.bz2
timeline-133b90cdbafabab0640bfb3179899fb4f3df4dbe.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.html20
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>