Update profile design; update example.db to reflect recent changes

This commit is contained in:
Laura Hausmann 2021-01-25 19:58:15 +01:00
parent 70bb5c49cd
commit a5418a6641
Signed by: zotan
GPG Key ID: 5EC1D38FFC321311
2 changed files with 4 additions and 3 deletions

View File

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

Binary file not shown.