From 311651860b5760df9c5bd670aea691c7cbea40e7 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 27 Jan 2021 01:48:37 +0100 Subject: [PATCH] Update profile.cshtml with new style for chat and announcement links --- Pages/profile.cshtml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Pages/profile.cshtml b/Pages/profile.cshtml index c264f3d..949cc42 100644 --- a/Pages/profile.cshtml +++ b/Pages/profile.cshtml @@ -22,12 +22,15 @@ @if (live) { var videoInfo = $"{stream?.Meta.Video.Height ?? "?"}p{Math.Round(double.Parse(stream?.Meta.Video.FrameRate ?? "0"))} @ {Math.Round(double.Parse(stream?.BwIn ?? "0") / 1000000, 2)} Mbps"; @if (!string.IsNullOrWhiteSpace(user.ChatUrl)) { -

@user.PronounSubject.FirstCharToUpper() @pronounAdditional currently live! @user.PronounPossessive.FirstCharToUpper() stream chat is located here.

+

@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!

}
+ @if (!string.IsNullOrWhiteSpace(user.ChatUrl)) { + Chat + } Source - @(stream?.Meta.Video.Height ?? "?")p @if (user.AllowRestream) { if ((user.RestreamUrls ?? "").Contains(",")) { @@ -43,7 +46,8 @@ } else { if (!string.IsNullOrWhiteSpace(user.AnnouncementUrl)) { -

@user.PronounSubject.FirstCharToUpper() @pronounAdditional not currently live. @user.PronounSubject.FirstCharToUpper() have indicated that @user.PronounSubject will announce their streams here.

+

@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!