Back to Kavita

Reading History Viewer.Component

UI/Web/src/app/shared/reading-history-viewer/reading-history-viewer.component.html

0.9.01.0 KB
Original Source

@if (isLoading()) {

} @else if (pagination()?.totalItems === 0) { } @else { @if (totalPages() > 1) { } @for (entry of currentEntries(); track entry.sessionId) {

{{ entry.seriesName }} {{ entry.seriesFormat | mangaFormat }} {{ formatEntryDate(entry) }} @if (entry.isGeneratedSession) { }

@for (chapter of entry.chapters.slice(0, 5); track chapter.chapterId + '_' + chapter.pagesRead) {

} @let nonSlicedLength = entry.chapters.length - 5; @if (nonSlicedLength > 0) { {{t('num-more', {num: nonSlicedLength})}} }

} @if (totalPages() > 1) { } } @let chapter = item.value.chapter; @let entry = item.value.entry;

@if (label) { {{label}} } {{ entry.durationSeconds | duration }} @if (entry.pagesRead > 0) { {{t('pages-count', {num: entry.pagesRead | compactNumber})}} } @if (entry.wordsRead > 0) { {{t('words-count', {num: entry.wordsRead | compactNumber})}} } {{ entry.startTimeUtc | utcToLocalTime:'shortTime' }} - {{ entry.endTimeUtc | utcToLocalTime:'shortTime' }} @if (showInfo) { {{t('info-alt')}} }