@using SimpleIdp.Resources @model SimpleIdServer.IdServer.UI.ViewModels.AccountsIndexViewModel @{ ViewBag.Title = AccountsResource.select_session; Layout = "~/Views/Shared/_Layout.cshtml"; }

@AccountsResource.active_sessions

@if (!string.IsNullOrWhiteSpace(ViewBag.IsUserAccountSwitched)) {
@AccountsResource.useraccount_switched
} @if (!string.IsNullOrWhiteSpace(ViewBag.IsSessionRejected)) {
@AccountsResource.useraccount_rejected
}
@{ int i = 0; foreach (var account in Model.Accounts) { i++; string rejectFormId = "reject-" + i;
@using (Html.BeginForm("Index", "Accounts", FormMethod.Post)) { @Html.AntiForgeryToken()
@account.Name
@if (account.IssuedUtc != null) {

@string.Format(AccountsResource.authentication_time, account.IssuedUtc.Value.ToString("s"))

} @if (account.ExpiresUct != null) {

@string.Format(AccountsResource.expiration_time, account.ExpiresUct.Value.ToString("s"))

}
} @using (Html.BeginForm("Index", "Accounts", FormMethod.Post, new { id = rejectFormId })) { @Html.AntiForgeryToken() }
} }