diff --git a/WebfrontCore/Controllers/AboutController.cs b/WebfrontCore/Controllers/AboutController.cs index 751bd31e..7ae54065 100644 --- a/WebfrontCore/Controllers/AboutController.cs +++ b/WebfrontCore/Controllers/AboutController.cs @@ -19,7 +19,7 @@ namespace WebfrontCore.Controllers public IActionResult Index() { - ViewBag.Description = Localization["WEBFRONT_DESCRIPTION_ABOUT"].FormatExt( + ViewBag.Description = Localization["WEBFRONT_ABOUT_DESCRIPTION"].FormatExt( _appConfig.ShouldUseFallbackBranding() ? _appConfig.WebfrontCustomBranding : _appConfig.CommunityInformation.Name); diff --git a/WebfrontCore/Views/About/Index.cshtml b/WebfrontCore/Views/About/Index.cshtml index eb8c41b8..d18cdc81 100644 --- a/WebfrontCore/Views/About/Index.cshtml +++ b/WebfrontCore/Views/About/Index.cshtml @@ -1,7 +1,7 @@ @using SharedLibraryCore.Configuration @model WebfrontCore.ViewModels.CommunityInfo @{ - IEnumerable> allRules = new []{new KeyValuePair(ViewBag.Localization["WEBFRONT_ABOUT_GLOBAL_RULES"], Model.GlobalRules)}; + IEnumerable> allRules = new[] {new KeyValuePair(ViewBag.Localization["WEBFRONT_ABOUT_GLOBAL_RULES"], Model.GlobalRules)}; var serverRules = Model.ServerRules?.Where(server => server.Value != null && server.Value.Any()).ToList(); if (serverRules?.Any() ?? false) { @@ -9,22 +9,22 @@ } } -
+
@if (Model.CommunityInformation.EnableBanner) { - + @Model.CommunityInformation.Name } @if (!string.IsNullOrWhiteSpace(Model.CommunityInformation.Name)) { -

+

} @if (!string.IsNullOrWhiteSpace(Model.CommunityInformation.Description)) { -
+

@ViewBag.Localization["WEBFRONT_ABOUT_TITLE"]

@@ -38,10 +38,12 @@ } else if (!string.IsNullOrWhiteSpace(social.IconUrl)) { - var url = Uri.TryCreate(social.IconUrl, UriKind.Absolute, out _) ? social.IconUrl : $"images/community/{social.IconUrl}"; + var url = Uri.TryCreate(social.IconUrl, UriKind.Absolute, out var parsedUrl) + ? parsedUrl.AbsoluteUri + : $"images/community/{social.IconUrl}"; @social.Title } - @social.Title + @social.Title
} @@ -51,7 +53,7 @@ @if (allRules.Any(rule => rule.Value.Any())) { -

@ViewBag.Localization["WEBFRONT_ABOUT_COMMUNITY_GUIDELINES"]

+

@ViewBag.Localization["WEBFRONT_ABOUT_COMMUNITY_GUIDELINES"]

} @foreach (var (serverName, rules) in allRules) @@ -62,7 +64,7 @@ } var start = 1; -
+