diff --git a/ProjectLighthouse.Servers.Website/Pages/Errors/NotFoundPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/Errors/NotFoundPage.cshtml index ae9af46d..01c3ba24 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Errors/NotFoundPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/Errors/NotFoundPage.cshtml @@ -4,8 +4,8 @@ @{ Layout = "Layouts/BaseLayout"; Model.Title = "Not Found"; - Model.Description = "The page was not found."; + Model.Description = "Sorry, but the page you requested could not be found."; }

@Model.Description

-

This may be due to a lack of permission such as not being signed in, or maybe the page just isn't there.

+

Take a peek at the homepage to see if you can find what you were looking for.

diff --git a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml index 9785b060..6dfffc9f 100644 --- a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml @@ -23,18 +23,18 @@ @if (Model.ProfileUser.IsBanned) {
-

User is currently banned!

+

This user is currently banned.

@if (Model.User != null && Model.User.IsModerator) { Reason: "@Model.ProfileUser.BannedReason"

- Note: Only you and other moderators may view the ban reason. + Only you and other moderators may view the ban reason.

} - else + else { -

For shame...

+

Users who engage in inappropriate, offensive, or violent actions will be moderated. Be sure to follow the rules!

}
} @@ -164,8 +164,17 @@ }
- @await Html.PartialAsync("Partials/CommentsPartial", new ViewDataDictionary(ViewData.WithLang(language).WithTime(timeZone)) - { {"PageOwner", Model.ProfileUser.UserId}, }) + @if (Model.ProfileUser.IsBanned) + { +
+

Comments are disabled because the user is banned.

+
+ } + else + { + @await Html.PartialAsync("Partials/CommentsPartial", new ViewDataDictionary(ViewData.WithLang(language).WithTime(timeZone)) + { {"PageOwner", Model.ProfileUser.UserId}, }) + }
@@ -344,4 +353,4 @@ if (selectedElement != null) { let sidebarEle = document.querySelector("[target=" + selectedElement.id + "]") setVisible(sidebarEle); } - \ No newline at end of file +