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 releaseDateType = '';
|
||||
if (physicalRelease && digitalRelease) {
|
||||
releaseDate = (physicalRelease < digitalRelease) ? physicalRelease : digitalRelease;
|
||||
releaseDateType = (physicalRelease < digitalRelease) ? 'Released' : 'Digital';
|
||||
} else if (physicalRelease && !digitalRelease) {
|
||||
releaseDate = physicalRelease;
|
||||
releaseDateType = 'released';
|
||||
} else if (digitalRelease && !physicalRelease) {
|
||||
releaseDate = digitalRelease;
|
||||
releaseDateType = 'Digital';
|
||||
}
|
||||
|
||||
return (
|
||||
@ -270,9 +273,9 @@ class MovieIndexPoster extends Component {
|
||||
}
|
||||
|
||||
{
|
||||
showCinemaRelease &&
|
||||
showCinemaRelease && inCinemas &&
|
||||
<div className={styles.title}>
|
||||
{getRelativeDate(
|
||||
{translate('InCinemas')}: {getRelativeDate(
|
||||
inCinemas,
|
||||
shortDateFormat,
|
||||
showRelativeDates,
|
||||
@ -284,10 +287,17 @@ class MovieIndexPoster extends Component {
|
||||
</div>
|
||||
}
|
||||
|
||||
{
|
||||
showCinemaRelease && !inCinemas &&
|
||||
<div className={styles.title}>
|
||||
{translate('NoCinemaRelease')}
|
||||
</div>
|
||||
}
|
||||
|
||||
{
|
||||
showReleaseDate &&
|
||||
<div className={styles.title}>
|
||||
{getRelativeDate(
|
||||
{translate(releaseDateType)}: {getRelativeDate(
|
||||
releaseDate,
|
||||
shortDateFormat,
|
||||
showRelativeDates,
|
||||
|
@ -589,6 +589,7 @@
|
||||
"NoBackupsAreAvailable": "No backups are available",
|
||||
"NoChange": "No Change",
|
||||
"NoChanges": "No Changes",
|
||||
"NoCinemaRelease": "No Cinema Release",
|
||||
"NoEventsFound": "No events found",
|
||||
"NoHistory": "No history",
|
||||
"NoLeaveIt": "No, Leave It",
|
||||
|
Loading…
Reference in New Issue
Block a user