Add status page to site footer

This commit is contained in:
Laura Hausmann 2021-03-04 22:09:19 +01:00
parent 81452b164b
commit 83ae31ece7
Signed by: zotan
GPG Key ID: 5EC1D38FFC321311
2 changed files with 5 additions and 7 deletions

View File

@ -55,7 +55,7 @@
<footer class="border-top footer text-muted"> <footer class="border-top footer text-muted">
<div class="container text-center"> <div class="container text-center">
<a href="https://git.zotan.services/zotan/rtmpdash" target="_blank">Source Code</a> - <a href="@Program.ServiceAnnouncementUrl" target="_blank">Service Announcements</a> - <a asp-area="" asp-page="/Content">Content Policy</a> - <a asp-area="" asp-page="/Privacy">Privacy</a> - <a href="mailto:@Program.AbuseEmail">Abuse</a> - <a asp-area="" asp-page="/Credits">Credits and Copyright</a> <a href="https://git.zotan.services/zotan/rtmpdash" target="_blank">Source Code</a> - <a href="@Program.ServiceAnnouncementUrl" target="_blank">Service Announcements</a> - <a href="@Program.ServiceStatusUrl" target="_blank">Service Status</a> - <a asp-area="" asp-page="/Content">Content Policy</a> - <a asp-area="" asp-page="/Privacy">Privacy</a> - <a href="mailto:@Program.AbuseEmail">Abuse</a> - <a asp-area="" asp-page="/Credits">Credits and Copyright</a>
</div> </div>
</footer> </footer>

View File

@ -17,6 +17,7 @@ namespace RTMPDash {
public const string CopyrightEmail = "chaosstream-copyright@zotan.email"; public const string CopyrightEmail = "chaosstream-copyright@zotan.email";
public const string AbuseEmail = "chaosstream-abuse@zotan.email"; public const string AbuseEmail = "chaosstream-abuse@zotan.email";
public const string ServiceAnnouncementUrl = "https://t.me/chaosstream"; public const string ServiceAnnouncementUrl = "https://t.me/chaosstream";
public const string ServiceStatusUrl = "https://status.chaos.stream";
public const string ContactInfo = public const string ContactInfo =
"<a href=\"https://t.me/zotan\" target=\"_blank\">Telegram</a>, <a href=\"https://threema.id/S59S9U8J\" target=\"_blank\">Threema</a>, or via <a href=\"mailto:chaosstream-contact@zotan.email\" target=\"_blank\">email</a>."; "<a href=\"https://t.me/zotan\" target=\"_blank\">Telegram</a>, <a href=\"https://threema.id/S59S9U8J\" target=\"_blank\">Threema</a>, or via <a href=\"mailto:chaosstream-contact@zotan.email\" target=\"_blank\">email</a>.";
@ -27,14 +28,11 @@ namespace RTMPDash {
CreateHostBuilder(args).Build().Run(); CreateHostBuilder(args).Build().Run();
} }
public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) public static IHostBuilder CreateHostBuilder(string[] args) =>
.ConfigureWebHostDefaults(webBuilder => { Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); });
webBuilder.UseStartup<Startup>();
});
} }
public static class TimeExtensions { public static class TimeExtensions {
public static TimeSpan StripMilliseconds(this TimeSpan time) => public static TimeSpan StripMilliseconds(this TimeSpan time) => new(time.Days, time.Hours, time.Minutes, time.Seconds);
new(time.Days, time.Hours, time.Minutes, time.Seconds);
} }
} }