Back to Kavita

Details Tab.Component

UI/Web/src/app/_single-module/details-tab/details-tab.component.html

0.9.01.4 KB
Original Source

@let filesValue = files(); @let filePathsValue = filePaths(); @let bm = basicMetadata(); @if (accountService.hasAdminRole() && (filePathsValue.length > 0 || filesValue.length > 0)) {

{{t(filesValue.length > 0 ? 'file-path-title' : 'folder-path-title')}}

@for (fp of filePathsValue; track $index) { {{fp}} } @empty { @for (fp of filesValue; track fp.id) {

{{fp.filePath}}

{{t('pages-count', {num: fp.pages | compactNumber})}}{{t('bytes-count', {num: fp.bytes | bytes})}} @if (fp.koreaderHash) { KOReader ✓ }

} } } @if (showBasicMetadata() && bm) {

{{t('basic-metadata-title')}}

@if (bm.readingTime) { } @if (bm.sortOrder != null) { } @if (bm.isSpecial != null) { } @if (bm.publicationStatus != null) { }


} @let metadataEntity = entity(); @if (metadataEntity) {

{{t('external-metadata-title')}}

} @if (webLinks().length > 0) {

{{t('weblinks-title')}}

@for (link of webLinks(); track $index) { }

} @if (metadataEntity || webLinks().length > 0) {


} @if (showGenres()) {

{{t('genres-title')}}

@if (genres().length > 0) { @for (item of genres(); track item.id) { {{item.title}} } } @else { {{null | defaultValue}} }

} @if (showTags()) {

{{t('tags-title')}}

@if (tags().length > 0) { @for (item of tags(); track item.id) { {{item.title}} } } @else { {{null | defaultValue}} }

} @if (hasUpperMetadata()) {

}