mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
added words next to the release dates
This commit is contained in:
parent
2a3fc81b8a
commit
f4869e6bc9
@ -134,13 +134,16 @@ class MovieIndexPoster extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let releaseDate = '';
|
let releaseDate = '';
|
||||||
|
let releaseDateType = '';
|
||||||
if (physicalRelease && digitalRelease) {
|
if (physicalRelease && digitalRelease) {
|
||||||
releaseDate = (physicalRelease < digitalRelease) ? physicalRelease : digitalRelease;
|
releaseDate = (physicalRelease < digitalRelease) ? physicalRelease : digitalRelease;
|
||||||
|
releaseDateType = (physicalRelease < digitalRelease) ? 'Released' : 'Digital';
|
||||||
} else if (physicalRelease && !digitalRelease) {
|
} else if (physicalRelease && !digitalRelease) {
|
||||||
releaseDate = physicalRelease;
|
releaseDate = physicalRelease;
|
||||||
|
releaseDateType = 'released';
|
||||||
} else if (digitalRelease && !physicalRelease) {
|
} else if (digitalRelease && !physicalRelease) {
|
||||||
releaseDate = digitalRelease;
|
releaseDate = digitalRelease;
|
||||||
|
releaseDateType = 'Digital';
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -270,9 +273,9 @@ class MovieIndexPoster extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
showCinemaRelease &&
|
showCinemaRelease && inCinemas &&
|
||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
{getRelativeDate(
|
{translate('InCinemas')}: {getRelativeDate(
|
||||||
inCinemas,
|
inCinemas,
|
||||||
shortDateFormat,
|
shortDateFormat,
|
||||||
showRelativeDates,
|
showRelativeDates,
|
||||||
@ -284,10 +287,17 @@ class MovieIndexPoster extends Component {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
showCinemaRelease && !inCinemas &&
|
||||||
|
<div className={styles.title}>
|
||||||
|
{translate('NoCinemaRelease')}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
showReleaseDate &&
|
showReleaseDate &&
|
||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
{getRelativeDate(
|
{translate(releaseDateType)}: {getRelativeDate(
|
||||||
releaseDate,
|
releaseDate,
|
||||||
shortDateFormat,
|
shortDateFormat,
|
||||||
showRelativeDates,
|
showRelativeDates,
|
||||||
|
@ -589,6 +589,7 @@
|
|||||||
"NoBackupsAreAvailable": "No backups are available",
|
"NoBackupsAreAvailable": "No backups are available",
|
||||||
"NoChange": "No Change",
|
"NoChange": "No Change",
|
||||||
"NoChanges": "No Changes",
|
"NoChanges": "No Changes",
|
||||||
|
"NoCinemaRelease": "No Cinema Release",
|
||||||
"NoEventsFound": "No events found",
|
"NoEventsFound": "No events found",
|
||||||
"NoHistory": "No history",
|
"NoHistory": "No history",
|
||||||
"NoLeaveIt": "No, Leave It",
|
"NoLeaveIt": "No, Leave It",
|
||||||
|
Loading…
Reference in New Issue
Block a user