Created
June 11, 2020 21:21
-
-
Save krisb1220/9b1cb2453194d37de31a4f5bc0964ef5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.app-component-container.dashboard | |
.app-component-inner | |
h1.dashboard-view My Agenda | |
.dashboard-inner | |
-let dates = user.data.tasks | |
each date in dates | |
.date-container(data-date=date.meta.date) | |
p.date #{date.meta.date} | |
each task in date | |
if task != date.meta && task.isCompleted == false | |
-let startDate = task.UTC; | |
-let dateNow = Date.now(); | |
if startDate >= dateNow | |
div.task-container(data-id=task.ObjectID) | |
div.iscompleted | |
<span class="iconify checkmark" data-clicked="markDone" data-isclickable="true" data-inline="false" data-icon="ion:checkmark-done-circle-sharp"></span> | |
div.task-meta | |
p.task-title #{task.title} | |
p.task-description #{task.description} | |
.task-meta-meta(style="display:flex") | |
p.task-time #{task.time} | |
p #{startDate} | |
.tag-list(style="display:flex") | |
each tagObject in task.tags | |
-let tagColorStyle = `background:${tagObject.color}` | |
-let tag = tagObject.name; | |
div.tagInner(name=tag data-tagname=tag ) | |
span.tagColor(style=tagColorStyle) | |
p #{tag} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment