|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import TagListConnector from 'Components/TagListConnector';
|
|
|
|
|
import Language from 'Language/Language';
|
|
|
|
|
import QualityProfile from 'typings/QualityProfile';
|
|
|
|
|
import formatDateTime from 'Utilities/Date/formatDateTime';
|
|
|
|
@ -17,11 +18,13 @@ interface SeriesIndexPosterInfoProps {
|
|
|
|
|
seasonCount: number;
|
|
|
|
|
path: string;
|
|
|
|
|
sizeOnDisk?: number;
|
|
|
|
|
tags: number[];
|
|
|
|
|
sortKey: string;
|
|
|
|
|
showRelativeDates: boolean;
|
|
|
|
|
shortDateFormat: string;
|
|
|
|
|
longDateFormat: string;
|
|
|
|
|
timeFormat: string;
|
|
|
|
|
showTags: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function SeriesIndexPosterInfo(props: SeriesIndexPosterInfoProps) {
|
|
|
|
@ -35,11 +38,13 @@ function SeriesIndexPosterInfo(props: SeriesIndexPosterInfoProps) {
|
|
|
|
|
seasonCount,
|
|
|
|
|
path,
|
|
|
|
|
sizeOnDisk,
|
|
|
|
|
tags,
|
|
|
|
|
sortKey,
|
|
|
|
|
showRelativeDates,
|
|
|
|
|
shortDateFormat,
|
|
|
|
|
longDateFormat,
|
|
|
|
|
timeFormat,
|
|
|
|
|
showTags,
|
|
|
|
|
} = props;
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'network' && network) {
|
|
|
|
@ -122,6 +127,16 @@ function SeriesIndexPosterInfo(props: SeriesIndexPosterInfoProps) {
|
|
|
|
|
return <div className={styles.info}>{seasons}</div>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!showTags && sortKey === 'tags' && tags.length) {
|
|
|
|
|
return (
|
|
|
|
|
<div className={styles.tags}>
|
|
|
|
|
<div className={styles.tagsList}>
|
|
|
|
|
<TagListConnector tags={tags} />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'path') {
|
|
|
|
|
return (
|
|
|
|
|
<div className={styles.info} title={translate('Path')}>
|
|
|
|
|