diff --git a/src/locales/en.json b/src/locales/en.json index fa92d66..ed2bf5f 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -407,9 +407,10 @@ "driver-return-link": "GO BACK", "driver-not-found-header": "Train not found! :/", - "driver-not-found-desc-1": "This train has already been terminated or it's offline.", + "driver-not-found-desc-1": "This train has already been terminated, changed its number or is offline.", "driver-not-found-desc-2": "You can browse timetable history in the", "driver-not-found-journal": "TIMETABLES JOURNAL", + "driver-not-found-others": "Player {driver} is online with the train number | Player {driver} is online with the train numbers", "driver-not-found-return": "GO BACK TO THE MAIN SITE" }, "train-stats": { diff --git a/src/locales/pl.json b/src/locales/pl.json index 86815a9..50dec29 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -393,9 +393,10 @@ "driver-return-link": "POWRÓT", "driver-not-found-header": "Nie znaleziono pociągu! :/", - "driver-not-found-desc-1": "Ten pociąg prawdopodobnie zakończył już swój bieg lub jest offline.", + "driver-not-found-desc-1": "Ten pociąg prawdopodobnie zakończył już swój bieg, zmienił numer lub jest offline.", "driver-not-found-desc-2": "Historię rozkładów jazdy możesz przejrzeć w", "driver-not-found-journal": "DZIENNIKU RJ", + "driver-not-found-others": "Gracz {driver} jest online pod numerem | Gracz {driver} jest online pod numerami", "driver-not-found-return": "WRÓĆ NA STRONĘ GŁÓWNĄ" }, "train-stats": { diff --git a/src/views/DriverView.vue b/src/views/DriverView.vue index 587395b..d00f43a 100644 --- a/src/views/DriverView.vue +++ b/src/views/DriverView.vue @@ -31,7 +31,8 @@

⦻ {{ $t('trains.driver-not-found-header') }}

-

+ +

{{ $t('trains.driver-not-found-desc-1') }}
{{ $t('trains.driver-not-found-desc-2') }} !

- << {{ $t('trains.driver-not-found-return') }} +

+ {{ + $t( + 'trains.driver-not-found-others', + { driver: otherDriverTrains[0].driverName }, + otherDriverTrains.length + ) + }}: + +

+ +
+ +
+ +
+ << {{ $t('trains.driver-not-found-return') }} +
@@ -86,7 +113,7 @@ $viewBgCol: #1a1a1a; margin: 0 auto; padding: 1em 0; max-width: 2000px; - min-height: 95vh; + min-height: calc(100vh - 7em); } .actions { @@ -115,10 +142,10 @@ $viewBgCol: #1a1a1a; background-color: $viewBgCol; text-align: center; padding: 1em; + border-radius: 0.5em 0.5em; p { - padding: 1em 0; - color: #aaa; + padding: 0.5em 0; } a { @@ -127,6 +154,13 @@ $viewBgCol: #1a1a1a; } } +.other-driver-trains { + display: flex; + justify-content: center; + flex-wrap: wrap; + gap: 0.5em; +} + @include smallScreen { .actions > a > span.hidable { display: none;