src/app/features/quick-history/quick-history.component.html
@if (worklogService.quickHistoryWeeks$ | async; as weeks) { @if (weeks?.length === 0) { {{ T.F.QUICK_HISTORY.NO_DATA | translate }} } @for (week of weeks; track week; let j = $index) {
@for ( day of week?.ent | keyvalue: sortDays; track trackByDay($index, day); let i = $index ) {
@if (visibility[i + j * 100]) { {{ T.F.WORKLOG.WEEK.TITLE | translate }} }
@if (!visibility[i + j * 100]) { ∑ {{ day.value.timeSpent | msToClockString }} list {{ day.value.logEntries.length }} @if (day.value.workStart) { {{ day.value.workStart | momentFormat: 'HH:mm' }} - {{ day.value.workEnd | momentFormat: 'HH:mm' }} } @for ( sc of simpleCounterService.enabledSimpleCounters$ | async; track sc ) { {{ sc.icon }} @if (sc.type === 'StopWatch') { {{ sc.countOnDay[day.value.dateStr] || 0 | msToMinuteClockString }} } @else { {{ sc.countOnDay[day.value.dateStr] || 0 }} } }
}
@if (visibility[i + j * 100]) { timer }
@if (visibility[i + j * 100]) {
@for ( logEntry of filterWorklogDataForDay(day.value.logEntries); track trackByLogEntry($index, logEntry) ) { | {{ logEntry.task.title }} | @if ( logEntry.task.subTaskIds && logEntry.task.subTaskIds.length > 0 ) { ∑ {{ logEntry.task.timeSpentOnDay[day.value.dateStr] | msToClockString }} } @if ( !logEntry.task.subTaskIds || !logEntry.task.subTaskIds.length ) { } | } }
}
} } @else { }