diff --git a/.gitignore b/.gitignore index dd0cad598..24930ce75 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ public/uploads/avatars # Laravel 4 specific bootstrap/compiled.php app/storage/ +bootstrap/cache # Laravel 5 & Lumen specific public/storage diff --git a/app/Http/Controllers/FrontendStatusController.php b/app/Http/Controllers/FrontendStatusController.php index 56772130d..238b2a36b 100644 --- a/app/Http/Controllers/FrontendStatusController.php +++ b/app/Http/Controllers/FrontendStatusController.php @@ -17,11 +17,7 @@ public function getDashboard() { $statuses = StatusBackend::getDashboard($user); if (!$user->hasVerifiedEmail() && $user->email != null) { - \Session::flash('message', - __('controller.status.email-not-verified', - ['url' => route('verification.resend')] - ) - ); + \Session::flash('mail-prompt', __('controller.status.email-not-verified')); } if ($statuses->isEmpty() || $user->follows->count() == 0) { if (Session::has('checkin-success')) { diff --git a/resources/lang/de/controller.php b/resources/lang/de/controller.php index caa833591..a2dd33a4b 100644 --- a/resources/lang/de/controller.php +++ b/resources/lang/de/controller.php @@ -1,44 +1,45 @@ [ + "social" => [ "already-connected-error" => "Dieser Account ist bereits mit einem anderen Nutzer verknüpft.", - "create-error" => "Es gab ein Problem beim Erstellen Deines Accounts.", - "delete-never-connected" => "Du hast keinen Social-Login-Provider.", - "delete-set-password" => "Bevor du einen SSO-Provider löschst, musst du ein Passwort festlegen, um dich nicht auszusperren.", - "deleted" => "Die Verbindung wurde aufgehoben." + "create-error" => "Es gab ein Problem beim Erstellen Deines Accounts.", + "delete-never-connected" => "Du hast keinen Social-Login-Provider.", + "delete-set-password" => "Bevor du einen SSO-Provider löschst, musst du ein Passwort festlegen, um dich nicht auszusperren.", + "deleted" => "Die Verbindung wurde aufgehoben." ], - "status" => [ - "status-not-found" => "Status nicht gefunden", - "create-success" => "Status erstellt.", - "delete-ok" => "Status gelöscht.", - "email-not-verified" => "Du hast Deine Email-Adresse noch nicht verifiziert. Bestätigung erneut senden.", - "export-invalid-dates" => "Das sind keine validen Daten.", + "status" => [ + "status-not-found" => "Status nicht gefunden", + "create-success" => "Status erstellt.", + "delete-ok" => "Status gelöscht.", + "email-not-verified" => "Du hast Deine Email-Adresse noch nicht verifiziert.", + "email-resend-mail" => "Bestätigung erneut senden.", + "export-invalid-dates" => "Das sind keine validen Daten.", "export-neither-business" => "Du kannst nicht sowohl Privat- als auch Business-Trips abwählen.", - "like-already" => "Like existiert bereits.", - "like-deleted" => "Like gelöscht.", - "like-not-found" => "Like nicht gefunden.", - "like-ok" => "Liked!", - "not-permitted" => "DAS darfst Du nicht." + "like-already" => "Like existiert bereits.", + "like-deleted" => "Like gelöscht.", + "like-not-found" => "Like nicht gefunden.", + "like-ok" => "Liked!", + "not-permitted" => "DAS darfst Du nicht." ], "transport" => [ - "checkin-heading" => "Eingecheckt", - "checkin-ok" => "Du hast erfolgreich in :lineName eingecheckt!|Du hast erfolgreich in Linie :lineName eingecheckt!", - "no-name-given" => "Du musst einen Stationsnamen angeben!", - "not-in-stopovers" => "Die Start-ID ist nicht in den Zwischenstops.", - "overlapping-checkin" => "Du hast bereits einen Check-In in Verbindung :linename: #:id", - "also-in-connection" => "Auch in dieser Verbindung sind:", - "social-post" => "Ich bin gerade in :lineName nach :Destination! #NowTräwelling |Ich bin gerade in Linie :lineName nach :Destination! #NowTräwelling ", + "checkin-heading" => "Eingecheckt", + "checkin-ok" => "Du hast erfolgreich in :lineName eingecheckt!|Du hast erfolgreich in Linie :lineName eingecheckt!", + "no-name-given" => "Du musst einen Stationsnamen angeben!", + "not-in-stopovers" => "Die Start-ID ist nicht in den Zwischenstops.", + "overlapping-checkin" => "Du hast bereits einen Check-In in Verbindung :linename: #:id", + "also-in-connection" => "Auch in dieser Verbindung sind:", + "social-post" => "Ich bin gerade in :lineName nach :Destination! #NowTräwelling |Ich bin gerade in Linie :lineName nach :Destination! #NowTräwelling ", "social-post-with-event" => "Ich bin gerade in :lineName nach :destination für #:hashtag! #NowTräwelling | Ich bin gerade in Linie :lineName nach #destination für #:hashtag! #NowTräwelling ", - "social-post-for" => " für #:hashtag", - "no-station-found" => "Für diese Suche wurde keine Haltestelle gefunden.", + "social-post-for" => " für #:hashtag", + "no-station-found" => "Für diese Suche wurde keine Haltestelle gefunden.", ], - "user" => [ - "follow-404" => "Dieser Follow existierte gar nicht.", - "follow-already-exists" => "Du folgst dieser Person bereits.", + "user" => [ + "follow-404" => "Dieser Follow existierte gar nicht.", + "follow-already-exists" => "Du folgst dieser Person bereits.", "follow-delete-not-permitted" => "Diese Aktion ist nicht erlaubt.", - "follow-destroyed" => "Du folgst dieser Person nicht mehr.", - "follow-ok" => "Benutzer gefolgt.", - "password-changed-ok" => "Passwort geändert.", - "password-wrong" => "Altes Passwort ist falsch." + "follow-destroyed" => "Du folgst dieser Person nicht mehr.", + "follow-ok" => "Benutzer gefolgt.", + "password-changed-ok" => "Passwort geändert.", + "password-wrong" => "Altes Passwort ist falsch." ] ]; diff --git a/resources/lang/en/controller.php b/resources/lang/en/controller.php index 67b9edf54..0bf29179a 100644 --- a/resources/lang/en/controller.php +++ b/resources/lang/en/controller.php @@ -1,44 +1,45 @@ [ + "social" => [ "already-connected-error" => "This Account is already connected to another user", - "create-error" => "There has been an error creating your account.", - "delete-never-connected" => "Your user does not have a Social Login provider", - "delete-set-password" => "You need to set a password before deleting a SSO-Provider to prevent you from locking yourself out.", - "deleted" => "Social Login Provider has been deleted" + "create-error" => "There has been an error creating your account.", + "delete-never-connected" => "Your user does not have a Social Login provider", + "delete-set-password" => "You need to set a password before deleting a SSO-Provider to prevent you from locking yourself out.", + "deleted" => "Social Login Provider has been deleted" ], - "status" => [ - "status-not-found" => "Status not found", - "create-success" => "Status successfully created!", - "delete-ok" => "Status successfully deleted.", - "email-not-verified" => "You have not verified your mail yet! Resend link", - "export-invalid-dates" => "Those aren't valid dates.", + "status" => [ + "status-not-found" => "Status not found", + "create-success" => "Status successfully created!", + "delete-ok" => "Status successfully deleted.", + "email-not-verified" => "You have not verified your mail yet!", + "email-resend-mail" => "Resend link.", + "export-invalid-dates" => "Those aren't valid dates.", "export-neither-business" => "You can't uncheck both private and business trips", - "like-already" => "Like already exists", - "like-deleted" => "Like deleted", - "like-not-found" => "Like not found", - "like-ok" => "Like created", - "not-permitted" => "You 're not permitted to do this" + "like-already" => "Like already exists", + "like-deleted" => "Like deleted", + "like-not-found" => "Like not found", + "like-ok" => "Like created", + "not-permitted" => "You 're not permitted to do this" ], "transport" => [ - "checkin-heading" => "Checked in!", - "checkin-ok" => "You've successfully checked into :lineName!|You've successfully checked into line :lineName!", - "no-name-given" => "You need to provide a station name!", - "not-in-stopovers" => "Start-ID is not in stopovers.", - "overlapping-checkin" => "You have an overlapping checkin with connection :linename: #:id", - "also-in-connection" => "Also in this connection are:", - "social-post" => "I'm in :lineName towards :Destination! #NowTräwelling |I'm in line :lineName towards :Destination! #NowTräwelling ", + "checkin-heading" => "Checked in!", + "checkin-ok" => "You've successfully checked into :lineName!|You've successfully checked into line :lineName!", + "no-name-given" => "You need to provide a station name!", + "not-in-stopovers" => "Start-ID is not in stopovers.", + "overlapping-checkin" => "You have an overlapping checkin with connection :linename: #:id", + "also-in-connection" => "Also in this connection are:", + "social-post" => "I'm in :lineName towards :Destination! #NowTräwelling |I'm in line :lineName towards :Destination! #NowTräwelling ", "social-post-with-event" => "I'm in :lineName towards #:hashtag via :Destination! #NowTräwelling | I'm in Line :lineName towards #:hashtag via :Destination! #NowTräwelling ", - "social-post-for" => " for #:hashtag", - "no-station-found" => "No station has been found for this search.", + "social-post-for" => " for #:hashtag", + "no-station-found" => "No station has been found for this search.", ], - "user" => [ - "follow-404" => "This follow does not exist.", - "follow-already-exists" => "This follow already exists.", + "user" => [ + "follow-404" => "This follow does not exist.", + "follow-already-exists" => "This follow already exists.", "follow-delete-not-permitted" => "This action is not permitted.", - "follow-destroyed" => "This follow has been destroyed.", - "follow-ok" => "Followed user.", - "password-changed-ok" => "Password changed.", - "password-wrong" => "Password wrong." + "follow-destroyed" => "This follow has been destroyed.", + "follow-ok" => "Followed user.", + "password-changed-ok" => "Password changed.", + "password-wrong" => "Password wrong." ] ]; diff --git a/resources/views/includes/message-block.blade.php b/resources/views/includes/message-block.blade.php index 846d971bc..8d87fb979 100644 --- a/resources/views/includes/message-block.blade.php +++ b/resources/views/includes/message-block.blade.php @@ -42,6 +42,22 @@ @endif + @if($message = Session::get('mail-prompt')) +