@{ ViewData["Title"] = "Start Page"; var pictureUrl = User.FindFirst("app.picture")?.Value ?? User.FindFirst(System.Security.Claims.ClaimTypes.Uri)?.Value; var isSubscribed = ViewData["IsSubscribed"] as bool? ?? false; var lastRun = ViewData["WorkerLastRun"] as string; var nextRun = ViewData["WorkerNextRun"] as string; var lastResult = ViewData["WorkerLastResult"] as string; }

Welcome to Hotline Planner

@if (User.Identity != null && User.Identity.IsAuthenticated) { @if (!string.IsNullOrEmpty(pictureUrl)) { Profile Picture } else {
}

Hello, @User.Identity.Name!

You have successfully logged in.

Status: @(isSubscribed ? "Active" : "Inactive")
Last run: @(lastRun ?? "n/a")
Next run: @(nextRun ?? "n/a")
Last result: @(lastResult ?? "n/a")
} else {

Please sign in to continue.

}