LoggedOut.cshtml 828 Bytes
Newer Older
janskoruba's avatar
janskoruba committed
1
2
3
@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
@model LoggedOutViewModel
4

janskoruba's avatar
janskoruba committed
5
6
7
@{
	// set this so the layout rendering sees an anonymous user
	ViewData["signed-out"] = true;
8
9
}

10
<div class="page-header logged-out-container">
janskoruba's avatar
janskoruba committed
11
12
13
14
	<h1>
		@Localizer["Title"]
		<small>@Localizer["SubTitle"]</small>
	</h1>
15

janskoruba's avatar
janskoruba committed
16
17
18
19
20
21
22
	@if (Model.PostLogoutRedirectUri != null)
	{
		<div>
			@Localizer["Click"] <a class="PostLogoutRedirectUri" href="@Model.PostLogoutRedirectUri">@Localizer["Here"]</a> @Localizer["Return"]
			<span>@Model.ClientName</span>.
		</div>
	}
23

janskoruba's avatar
janskoruba committed
24
25
26
27
	@if (Model.SignOutIframeUrl != null)
	{
		<iframe width="0" height="0" class="signout" src="@Model.SignOutIframeUrl"></iframe>
	}
28
29
30
</div>

@section scripts
janskoruba's avatar
janskoruba committed
31
32
33
34
35
	{
	@if (Model.AutomaticRedirectAfterSignOut)
	{
		<script src="~/js/signout-redirect.js"></script>
	}
36
}