Update profile design; update example.db to reflect recent changes
parent
70bb5c49cd
commit
a5418a6641
|
@ -20,6 +20,7 @@
|
|||
<div class="text-center">
|
||||
<h3 class="display">Welcome to @Model.User's page!</h3>
|
||||
@if (live) {
|
||||
var videoInfo = $"{stream.Meta.Video.Height}p{Math.Round(double.Parse(stream.Meta.Video.FrameRate))} @ {Math.Round(double.Parse(stream.BwIn) / 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>
|
||||
}
|
||||
|
@ -27,14 +28,14 @@
|
|||
<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">
|
||||
<a href="@Program.PlayerDomain/@user.Username" target="_blank" role="button" class="btn btn-success" data-toggle="tooltip" data-placement="bottom" title="@(stream.Meta.Video.Width)x@(stream.Meta.Video.Height) @@ @(Math.Round(float.Parse(stream.BwIn) / 1000000, 2)) Mbps">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.RestreamUrls ?? "").Contains(",")) {
|
||||
<a href="@user.RestreamUrls!.Split(",")[0]" target="_blank" role="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="@(stream.Meta.Video.Width)x@(stream.Meta.Video.Height) @@ @(Math.Round(float.Parse(stream.BwIn) / 1000000, 2)) Mbps">Source - @(stream.Meta.Video.Height)p">Twitch Restream</a>
|
||||
<a href="@user.RestreamUrls!.Split(",")[0]" target="_blank" role="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="@videoInfo">Source - @(stream.Meta.Video.Height)p">Twitch Restream</a>
|
||||
<a href="@user.RestreamUrls!.Split(",")[1]" target="_blank" role="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="Source @@ 10Mbit VBR">YouTube Restream</a>
|
||||
}
|
||||
else if (!string.IsNullOrWhiteSpace(user.RestreamUrls)) {
|
||||
<a href="@user.RestreamUrls" target="_blank" role="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="@(stream.Meta.Video.Width)x@(stream.Meta.Video.Height) @@ @(Math.Round(float.Parse(stream.BwIn) / 1000000, 2)) Mbps">Source - @(stream.Meta.Video.Height)p">Twitch Restream</a>
|
||||
<a href="@user.RestreamUrls" target="_blank" role="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="@videoInfo">Twitch Restream</a>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
BIN
example.db
BIN
example.db
Binary file not shown.
Loading…
Reference in New Issue