Update profile.cshtml with new style for chat and announcement links
This commit is contained in:
parent
df94310265
commit
311651860b
|
@ -22,12 +22,15 @@
|
||||||
@if (live) {
|
@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";
|
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)) {
|
@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 {
|
else {
|
||||||
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional currently live! @user.PronounSubject.FirstCharToUpper() have not specified a stream chat URL, so enjoy @user.PronounPossessive content!</p>
|
<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">
|
<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>
|
<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.AllowRestream) {
|
||||||
if ((user.RestreamUrls ?? "").Contains(",")) {
|
if ((user.RestreamUrls ?? "").Contains(",")) {
|
||||||
|
@ -43,7 +46,8 @@
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!string.IsNullOrWhiteSpace(user.AnnouncementUrl)) {
|
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 {
|
else {
|
||||||
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional not currently live. @user.PronounSubject.FirstCharToUpper() have not specified an announcement URL, so check back later!</p>
|
<p>@user.PronounSubject.FirstCharToUpper() @pronounAdditional not currently live. @user.PronounSubject.FirstCharToUpper() have not specified an announcement URL, so check back later!</p>
|
||||||
|
|
Loading…
Reference in a new issue