Update profile.cshtml with new style for chat and announcement links

This commit is contained in:
Laura Hausmann 2021-01-27 01:48:37 +01:00
parent df94310265
commit 311651860b
Signed by: zotan
GPG key ID: 5EC1D38FFC321311

View file

@ -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)) {
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional currently live! @user.PronounPossessive.FirstCharToUpper() stream chat is located <a href="@user.ChatUrl" target="_blank">here</a>.</p>
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional currently live!</p>
}
else {
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional currently live! @user.PronounSubject.FirstCharToUpper() have not specified a stream chat URL, so enjoy @user.PronounPossessive content!</p>
}
<div class="btn-group btn-group-lg" role="group">
@if (!string.IsNullOrWhiteSpace(user.ChatUrl)) {
<a href="@user.ChatUrl" target="_blank" role="button" class="btn btn-primary">Chat</a>
}
<a href="@Program.PlayerDomain/@user.Username" target="_blank" role="button" class="btn btn-success" data-toggle="tooltip" data-placement="bottom" title="@videoInfo">Source - @(stream?.Meta.Video.Height ?? "?")p</a>
@if (user.AllowRestream) {
if ((user.RestreamUrls ?? "").Contains(",")) {
@ -43,7 +46,8 @@
}
else {
if (!string.IsNullOrWhiteSpace(user.AnnouncementUrl)) {
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional not currently live. @user.PronounSubject.FirstCharToUpper() have indicated that @user.PronounSubject will announce their streams <a href="@user.AnnouncementUrl" target="_blank">here</a>.</p>
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional not currently live. Click below to get notified when @user.PronounSubject @pronounAdditional live.</p>
<a href="@user.AnnouncementUrl" target="_blank" role="button" class="btn btn-lg btn-info">Announcements</a>
}
else {
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional not currently live. @user.PronounSubject.FirstCharToUpper() have not specified an announcement URL, so check back later!</p>