feat: added /sys/ to all system pages, edited 404 page, added deadlink, moar changes

This commit is contained in:
limited_dev 2023-02-12 17:01:46 +01:00
parent 2d458fd2f2
commit 0279df06fa
24 changed files with 90 additions and 41 deletions

View file

@ -16,15 +16,23 @@
<h3>Threads</h3>
<br/>
@if (posts.Any())
@if (posts != null)
{
@foreach(var post in posts)
@if (posts.Any())
{
<Post post="@post" showOpenThread="true"></Post>
<hr/>
@foreach(var post in posts)
{
<Post post="@post" showOpenThread="true"></Post>
<hr/>
}
}
}
else
{
<p>
<em>Loading Posts...</em>
</p>
}
@code {

View file

@ -44,7 +44,7 @@
<a @onclick="@deletePost" href="javascript:void(0)">Delete</a>
<span>]</span>
<span>[</span>
<a class="report" href="/report/comment/@comment.Board/@comment.CommentID" target="_blank">Report</a>
<a class="report" href="/sys/report/comment/@comment.Board/@comment.CommentID" target="_blank">Report</a>
<span>]</span>
</div>
}

View file

@ -90,7 +90,7 @@
//Maybe redirect to /banned?
return;
}
foundusr.lastActionTimeStamp = DateTimeOffset.UnixEpoch.ToUnixTimeMilliseconds();
foundusr.lastActionTimeStamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
await UsersRepository.updateUserAsync(foundusr);
bool hasImage = selectedFile != null;
@ -141,7 +141,7 @@
if (commentId == -1)
{
//Open comment unsucessfull
navigationManager.NavigateTo("/UnSuccessfulPost");
navigationManager.NavigateTo("/sys/UnSuccessfulPost");
hasErr = true;
postErr = "There was an error and the comment could not be created. Please notify the admin.";
Console.WriteLine("Shit sucks and did not work.");

View file

@ -5,9 +5,9 @@
<br/>
<div>
<span>Read the </span>
<a href="/rules">rules</a>
<a href="/sys/rules">rules</a>
<span> and </span>
<a href="/faq">faq</a>
<a href="/sys/faq">faq</a>
<span> before posting</span>
</div>
</div>

View file

@ -105,7 +105,7 @@
//Maybe redirect to /banned?
return;
}
foundusr.lastActionTimeStamp = DateTimeOffset.UnixEpoch.ToUnixTimeMilliseconds();
foundusr.lastActionTimeStamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
await UsersRepository.updateUserAsync(foundusr);

View file

@ -52,7 +52,7 @@
<a @onclick="@deletePost" href="javascript:void(0)">Delete</a>
<span>]</span>
<span>[</span>
<a class="report" href="/report/op/@post.Board/@post.PostID" target="_blank">Report</a>
<a class="report" href="/sys/report/op/@post.Board/@post.PostID" target="_blank">Report</a>
<span>]</span>
@if (showOpenThread)
{

View file

@ -13,8 +13,8 @@
<main>
<div class="top-row px-4">
<a href="/faq">[FAQ]</a>
<a href="/rules">[Rules]</a>
<a href="/sys/faq">[FAQ]</a>
<a href="/sys/rules">[Rules]</a>
</div>
<article class="content px-4">

View file

@ -10,7 +10,7 @@
<a class="navbar-brand" @onclick="logout" href="javascript:void(0)">[Logout]</a>
</Authorized>
<NotAuthorized>
<a class="navbar-brand" href="/login">[Login]</a>
<a class="navbar-brand" href="/sys/login">[Login]</a>
</NotAuthorized>
</AuthorizeView>
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">