DTP Base provides a scalable and secure Node.js application development harness ready for production service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 lines
1.2 KiB

extends layout/main
block view-content
include task/components/grid
include report/components/weekly-summary
if Array.isArray(projects) && (projects.length > 0)
section.uk-section.uk-section-muted.uk-section-small
.uk-container
h1 Your Projects
if weeklyEarnings.length > 0
+renderWeeklySummaryReport(weeklyEarnings)
else
div No time worked this week.
section.uk-section.uk-section-default.uk-section-small
.uk-container
+renderTaskGrid(
taskGrid.pendingTasks,
taskGrid.activeTasks,
taskGrid.finishedTasks,
)
if Array.isArray(managedProjects) && (managedProjects.length > 0)
section.uk-section.uk-section-muted.uk-section-small
.uk-container
h1 Projects You Manage
section.uk-section.uk-section-default.uk-section-small
.uk-container
ul.uk-list.uk-list-divider
each project in managedProjects
li
h2= project.name
+renderTaskGrid(
project.taskGrid.pendingTasks,
project.taskGrid.activeTasks,
project.taskGrid.finishedTasks,
)