mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 15:01:56 +00:00
Added localization for /Home/AccessDenied
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
@inject IViewLocalizer T
|
||||
@{
|
||||
ViewData["Title"] = "Access denied";
|
||||
ViewData["Title"] = T["Access denied"];
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Access denied</h1>
|
||||
<p>You currently do not have permission to access the page you tried to access.</p>
|
||||
<a href="/Home/Login">Please click here to return to the login page</a>
|
||||
<h1 class="display-4">@T["Access denied"]</h1>
|
||||
<p>@T["You currently do not have permission to access the page you tried to access."]</p>
|
||||
@if (!User.Identity?.IsAuthenticated ?? false)
|
||||
{
|
||||
<a href="/Home/Login">@T["Please click here to return to the login page"]</a>
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user