This commit is contained in:
parent
70a970cee6
commit
d9753a7fc8
@ -57,7 +57,7 @@ class VerifyEmailNotification extends Notification
|
|||||||
$verificationUrl = $this->verificationUrl($notifiable);
|
$verificationUrl = $this->verificationUrl($notifiable);
|
||||||
|
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
->subject('Verify Email Address')
|
->subject('E-Mail-Adresse bestätigen')
|
||||||
->view('mail.email-verification', [
|
->view('mail.email-verification', [
|
||||||
'user' => $notifiable,
|
'user' => $notifiable,
|
||||||
'url' => $verificationUrl,
|
'url' => $verificationUrl,
|
||||||
|
|||||||
@ -92,7 +92,7 @@ const LandingNavbar = () => {
|
|||||||
{(user.role === 'admin' || user.role === 'instructor') && (
|
{(user.role === 'admin' || user.role === 'instructor') && (
|
||||||
<DropdownMenuItem className="cursor-pointer px-3" onClick={() => router.get(route('dashboard'))}>
|
<DropdownMenuItem className="cursor-pointer px-3" onClick={() => router.get(route('dashboard'))}>
|
||||||
<LayoutDashboard className="mr-1 h-4 w-4" />
|
<LayoutDashboard className="mr-1 h-4 w-4" />
|
||||||
<span>Dashboard</span>
|
<span>Übersicht</span>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ const LandingNavbar = () => {
|
|||||||
|
|
||||||
<DropdownMenuItem className="cursor-pointer px-3" onClick={() => router.post('/logout')}>
|
<DropdownMenuItem className="cursor-pointer px-3" onClick={() => router.post('/logout')}>
|
||||||
<LogOut className="mr-1 h-4 w-4" />
|
<LogOut className="mr-1 h-4 w-4" />
|
||||||
<span>Log Out</span>
|
<span>Abmelden</span>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
@ -118,10 +118,10 @@ const LandingNavbar = () => {
|
|||||||
) : (
|
) : (
|
||||||
<div className="hidden items-center gap-3 md:flex">
|
<div className="hidden items-center gap-3 md:flex">
|
||||||
<Button asChild variant="outline" className="h-auto rounded-sm px-5 py-2.5 shadow-none">
|
<Button asChild variant="outline" className="h-auto rounded-sm px-5 py-2.5 shadow-none">
|
||||||
<Link href={route('register')}>Sign Up</Link>
|
<Link href={route('register')}>Registrieren</Link>
|
||||||
</Button>
|
</Button>
|
||||||
<Button asChild className="h-auto rounded-sm px-5 py-2.5 shadow-none">
|
<Button asChild className="h-auto rounded-sm px-5 py-2.5 shadow-none">
|
||||||
<Link href={route('login')}>Log In</Link>
|
<Link href={route('login')}>Anmelden</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@ -153,10 +153,10 @@ const LandingNavbar = () => {
|
|||||||
user.role === 'admin' ? (
|
user.role === 'admin' ? (
|
||||||
<>
|
<>
|
||||||
<Link href={route('dashboard')} className="text-sm font-normal">
|
<Link href={route('dashboard')} className="text-sm font-normal">
|
||||||
Dashboard
|
Übersicht
|
||||||
</Link>
|
</Link>
|
||||||
<Button variant="outline" onClick={() => router.post(route('logout'))}>
|
<Button variant="outline" onClick={() => router.post(route('logout'))}>
|
||||||
Log Out
|
Abmelden
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
@ -167,19 +167,19 @@ const LandingNavbar = () => {
|
|||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
<Link href={route('student.index', { tab: 'courses' })} className="text-sm font-normal">
|
<Link href={route('student.index', { tab: 'courses' })} className="text-sm font-normal">
|
||||||
My Courses
|
Meine Kurse
|
||||||
</Link>
|
</Link>
|
||||||
<Link href={route('student.index', { tab: 'wishlist' })} className="text-sm font-normal">
|
<Link href={route('student.index', { tab: 'wishlist' })} className="text-sm font-normal">
|
||||||
Wishlist
|
Wunschliste
|
||||||
</Link>
|
</Link>
|
||||||
<Link href={route('student.index', { tab: 'profile' })} className="text-sm font-normal">
|
<Link href={route('student.index', { tab: 'profile' })} className="text-sm font-normal">
|
||||||
My Profile
|
Mein Profil
|
||||||
</Link>
|
</Link>
|
||||||
<Link href={route('student.index', { tab: 'settings' })} className="text-sm font-normal">
|
<Link href={route('student.index', { tab: 'settings' })} className="text-sm font-normal">
|
||||||
Settings
|
Einstellungen
|
||||||
</Link>
|
</Link>
|
||||||
<Button variant="secondary" onClick={() => router.post(route('logout'))}>
|
<Button variant="secondary" onClick={() => router.post(route('logout'))}>
|
||||||
Log Out
|
Abmelden
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export default function Recaptcha({ status }: { status?: string }) {
|
|||||||
{button.submit}
|
{button.submit}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button onClick={() => router.post(route('logout'))} className="mx-auto block text-sm">
|
<Button type="button" onClick={() => router.post(route('logout'))} className="mx-auto block text-sm">
|
||||||
{button.logout}
|
{button.logout}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -33,7 +33,7 @@ const Layout = ({ children, tab }: { children: ReactNode; tab: string }) => {
|
|||||||
: [
|
: [
|
||||||
{
|
{
|
||||||
id: 'exams',
|
id: 'exams',
|
||||||
name: 'Exams',
|
name: 'Prüfungen',
|
||||||
slug: 'exams',
|
slug: 'exams',
|
||||||
Icon: FileQuestion,
|
Icon: FileQuestion,
|
||||||
},
|
},
|
||||||
@ -90,22 +90,22 @@ const Layout = ({ children, tab }: { children: ReactNode; tab: string }) => {
|
|||||||
<div className="mb-6 rounded-md bg-red-50 p-6">
|
<div className="mb-6 rounded-md bg-red-50 p-6">
|
||||||
{status === 'verification-link-sent' ? (
|
{status === 'verification-link-sent' ? (
|
||||||
<p className="mb-4 text-center text-sm font-medium text-green-600">
|
<p className="mb-4 text-center text-sm font-medium text-green-600">
|
||||||
A new verification link has been sent to the email address you provided during registration.
|
Ein neuer Verifizierungslink wurde an die bei der Registrierung angegebene E-Mail-Adresse gesendet.
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<p className="mb-4 text-center text-sm font-medium text-red-500">
|
<p className="mb-4 text-center text-sm font-medium text-red-500">
|
||||||
Your email is not verified yet. Please verify your email address by clicking on the link we just emailed to you.
|
Ihre E-Mail-Adresse ist noch nicht verifiziert. Bitte bestätigen Sie Ihre E-Mail-Adresse, indem Sie auf den Link klicken, den wir Ihnen soeben per E-Mail gesendet haben.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<form onSubmit={submit} className="flex items-center justify-center gap-4 text-center">
|
<form onSubmit={submit} className="flex items-center justify-center gap-4 text-center">
|
||||||
<Button disabled={processing} variant="secondary">
|
<Button disabled={processing} variant="secondary">
|
||||||
{processing && <LoaderCircle className="h-4 w-4 animate-spin" />}
|
{processing && <LoaderCircle className="h-4 w-4 animate-spin" />}
|
||||||
Resend verification email
|
Verifizierungs-E-Mail erneut senden
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Link href={route('logout')} method="post">
|
<Link href={route('logout')} method="post">
|
||||||
<Button>Log out</Button>
|
<Button>Abmelden</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user