@if (worklogData(); as wData) {

# {{ T.F.WORKLOG.CMP.TOTAL_TIME | translate }}
{{ wData.totalTimeSpent | msToString }}

@for (year of wData.worklog | keyvalue: sortWorklogItems; track year.key) {

#

{{ T.F.WORKLOG.CMP.MONTH_WORKED | translate }} {{ year.value.monthWorked }}
{{ T.F.WORKLOG.CMP.DAYS_WORKED | translate }} {{ year.value.daysWorked }}
{{ T.F.WORKLOG.CMP.TOTAL_TIME | translate }}
@for (month of year.value.ent | keyvalue: sortWorklogItems; track month.key) {

##

{{ T.F.WORKLOG.CMP.DAYS_WORKED | translate }} {{ month.value.daysWorked }}
{{ T.F.WORKLOG.CMP.TOTAL_TIME | translate }}
@if (isMonthExpanded(year.key, month.key)) {
@for (week of month.value.weeks; track week.weekNr) {

### {{ T.F.WORKLOG.CMP.WEEK_NR | translate: { nr: week.weekNr } }}

{{ week.timeSpent | msToString }}

| schedule | {{ T.F.WORKLOG.CMP.TASKS | translate }} | {{ T.F.WORKLOG.CMP.WORKED | translate }} |
--- | --- | --- | --- | ---
@for ( worklogForDay of week.ent | keyvalue: sortWorklogItemsReverse; track worklogForDay.key ) {
| @if (worklogForDay.value.workStart) { {{ worklogForDay.value.workStart | momentFormat: 'HH:mm' }}-{{ worklogForDay.value.workEnd | momentFormat: 'HH:mm' }} } | {{ worklogForDay.value.logEntries.length }} | {{ worklogForDay.value.timeSpent | msToClockString }} | @if (!isDayExpanded(worklogForDay.value.dateStr)) { list } @if (isDayExpanded(worklogForDay.value.dateStr)) { close }

@if (isDayExpanded(worklogForDay.value.dateStr)) {

@for ( logEntry of worklogForDay.value.logEntries; track logEntry.task.id ) {
}

}

}

}
}
}
}
} @else { }