|
|
|
@ -10,6 +10,9 @@ function MovieIndexPosterInfo(props) {
|
|
|
|
|
qualityProfile,
|
|
|
|
|
showQualityProfile,
|
|
|
|
|
added,
|
|
|
|
|
inCinemas,
|
|
|
|
|
physicalRelease,
|
|
|
|
|
certification,
|
|
|
|
|
path,
|
|
|
|
|
sizeOnDisk,
|
|
|
|
|
sortKey,
|
|
|
|
@ -52,6 +55,42 @@ function MovieIndexPosterInfo(props) {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'inCinemas' && inCinemas) {
|
|
|
|
|
const inCinemasDate = getRelativeDate(
|
|
|
|
|
inCinemas,
|
|
|
|
|
shortDateFormat,
|
|
|
|
|
showRelativeDates,
|
|
|
|
|
{
|
|
|
|
|
timeFormat,
|
|
|
|
|
timeForToday: false
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className={styles.info}>
|
|
|
|
|
{`In Cinemas ${inCinemasDate}`}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'physicalRelease' && physicalRelease) {
|
|
|
|
|
const physicalReleaseDate = getRelativeDate(
|
|
|
|
|
physicalRelease,
|
|
|
|
|
shortDateFormat,
|
|
|
|
|
showRelativeDates,
|
|
|
|
|
{
|
|
|
|
|
timeFormat,
|
|
|
|
|
timeForToday: false
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className={styles.info}>
|
|
|
|
|
{`Released ${physicalReleaseDate}`}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'path') {
|
|
|
|
|
return (
|
|
|
|
|
<div className={styles.info}>
|
|
|
|
@ -68,6 +107,14 @@ function MovieIndexPosterInfo(props) {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (sortKey === 'certification') {
|
|
|
|
|
return (
|
|
|
|
|
<div className={styles.info}>
|
|
|
|
|
{certification}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -76,6 +123,9 @@ MovieIndexPosterInfo.propTypes = {
|
|
|
|
|
showQualityProfile: PropTypes.bool.isRequired,
|
|
|
|
|
qualityProfile: PropTypes.object.isRequired,
|
|
|
|
|
added: PropTypes.string,
|
|
|
|
|
inCinemas: PropTypes.string,
|
|
|
|
|
certification: PropTypes.string,
|
|
|
|
|
physicalRelease: PropTypes.string,
|
|
|
|
|
path: PropTypes.string.isRequired,
|
|
|
|
|
sizeOnDisk: PropTypes.number,
|
|
|
|
|
sortKey: PropTypes.string.isRequired,
|
|
|
|
|