@page "{user}" @using RTMPDash.DataModels @model ProfileModel @{ ViewData["Title"] = "View"; var db = new AppDb.DbConn(); if (!db.Users.Any(p => p.Username == Model.User)) { Response.Redirect("/"); return; } var user = db.Users.First(p => p.Username == Model.User); var live = StreamUtils.IsLive(user.Username); Stream stream = null; if (live) { stream = StreamUtils.GetStatsObject().Server.Applications.First(p => p.Name == "ingress").MethodLive.Streams.FirstOrDefault(p => p.Name == user.Username); } var pronounAdditional = user.PronounSubject == "they" ? "are" : "is"; // TODO make this configurable too }
@user.PronounSubject.FirstCharToUpper() @pronounAdditional currently live!
} else {@user.PronounSubject.FirstCharToUpper() @pronounAdditional currently live! @user.PronounSubject.FirstCharToUpper() have not specified a stream chat URL, so enjoy @user.PronounPossessive content!
}@user.PronounSubject.FirstCharToUpper() @pronounAdditional not currently live. Click below to get notified when @user.PronounSubject @pronounAdditional live.
Announcements } else {@user.PronounSubject.FirstCharToUpper() @pronounAdditional not currently live. @user.PronounSubject.FirstCharToUpper() have not specified an announcement URL, so check back later!
} }