diff --git a/ProjectLighthouse.Servers.Website/Pages/Partials/PhotoPartial.cshtml b/ProjectLighthouse.Servers.Website/Pages/Partials/PhotoPartial.cshtml
index 66c8b0fa..da1a46b2 100644
--- a/ProjectLighthouse.Servers.Website/Pages/Partials/PhotoPartial.cshtml
+++ b/ProjectLighthouse.Servers.Website/Pages/Partials/PhotoPartial.cshtml
@@ -1,5 +1,6 @@
+@using System.Globalization
+@using LBPUnion.ProjectLighthouse.Levels
@using LBPUnion.ProjectLighthouse.PlayerData
-@using LBPUnion.ProjectLighthouse.Types
@model LBPUnion.ProjectLighthouse.PlayerData.Photo
@@ -18,6 +19,27 @@
@Model.Creator?.Username
+ @if (Model.Slot != null)
+ {
+ switch (Model.Slot.Type)
+ {
+ case SlotType.User:
+
+ in level @Model.Slot.Name
+
+ break;
+ case SlotType.Developer:
+
in a story mode level
+ break;
+ case SlotType.Pod:
+
in the pod
+ break;
+ case SlotType.Local:
+
in a level on the moon
+ break;
+ }
+ }
+ at @DateTime.UnixEpoch.AddSeconds(Model.Timestamp).ToString(CultureInfo.CurrentCulture)
@@ -124,4 +146,4 @@
context.setTransform(1, 0, 0, 1, 0, 0);
})
}, false);
-
\ No newline at end of file
+
diff --git a/ProjectLighthouse.Servers.Website/Pages/PasswordResetPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/PasswordResetPage.cshtml
index 2f8a3ff3..bbc2a2ab 100644
--- a/ProjectLighthouse.Servers.Website/Pages/PasswordResetPage.cshtml
+++ b/ProjectLighthouse.Servers.Website/Pages/PasswordResetPage.cshtml
@@ -1,4 +1,5 @@
@page "/passwordReset"
+@using LBPUnion.ProjectLighthouse.Localization.StringLists
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.PasswordResetPage
@{
@@ -26,7 +27,7 @@
{
diff --git a/ProjectLighthouse.Servers.Website/Pages/PasswordResetRequestForm.cshtml b/ProjectLighthouse.Servers.Website/Pages/PasswordResetRequestForm.cshtml
index 22d590c2..53318893 100644
--- a/ProjectLighthouse.Servers.Website/Pages/PasswordResetRequestForm.cshtml
+++ b/ProjectLighthouse.Servers.Website/Pages/PasswordResetRequestForm.cshtml
@@ -1,4 +1,5 @@
@page "/passwordResetRequest"
+@using LBPUnion.ProjectLighthouse.Localization.StringLists
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.PasswordResetRequestForm
@{
@@ -10,7 +11,7 @@
{
@@ -20,7 +21,7 @@
{
diff --git a/ProjectLighthouse.Servers.Website/Pages/PhotosPage.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/PhotosPage.cshtml.cs
index b636205e..f2ce8fb0 100644
--- a/ProjectLighthouse.Servers.Website/Pages/PhotosPage.cshtml.cs
+++ b/ProjectLighthouse.Servers.Website/Pages/PhotosPage.cshtml.cs
@@ -40,6 +40,7 @@ public class PhotosPage : BaseLayout
this.Photos = await this.Database.Photos.Include
(p => p.Creator)
+ .Include(p => p.Slot)
.Where(p => p.Creator!.Username.Contains(this.SearchValue) || p.PhotoSubjectCollection.Contains(this.SearchValue))
.OrderByDescending(p => p.Timestamp)
.Skip(pageNumber * ServerStatics.PageSize)
diff --git a/ProjectLighthouse.Servers.Website/Pages/PirateSignupPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/PirateSignupPage.cshtml
new file mode 100644
index 00000000..9d9b183e
--- /dev/null
+++ b/ProjectLighthouse.Servers.Website/Pages/PirateSignupPage.cshtml
@@ -0,0 +1,31 @@
+@page "/pirate"
+@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.PirateSignupPage
+
+@{
+ Layout = "Layouts/BaseLayout";
+ Model.Title = "ARRRRRRRRRR!";
+}
+
+
+@if (!Model.User!.IsAPirate)
+{
+
So, ye wanna be a pirate? Well, ye came to the right place!
+
Just click this 'ere button, and welcome aboard!
+
If you ever wanna walk the plank, come back 'ere.
+
+
+}
+else
+{
+
Back so soon, aye?
+
If you're gonna walk the plank, then do it!
+
+
+}
+
diff --git a/ProjectLighthouse.Servers.Website/Pages/PirateSignupPage.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/PirateSignupPage.cshtml.cs
new file mode 100644
index 00000000..445aed21
--- /dev/null
+++ b/ProjectLighthouse.Servers.Website/Pages/PirateSignupPage.cshtml.cs
@@ -0,0 +1,32 @@
+using LBPUnion.ProjectLighthouse.PlayerData.Profiles;
+using LBPUnion.ProjectLighthouse.Servers.Website.Pages.Layouts;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+using Microsoft.EntityFrameworkCore.Metadata.Internal;
+
+namespace LBPUnion.ProjectLighthouse.Servers.Website.Pages;
+
+public class PirateSignupPage : BaseLayout
+{
+ public PirateSignupPage(Database database) : base(database)
+ {}
+
+ public async Task
OnGet()
+ {
+ User? user = this.Database.UserFromWebRequest(this.Request);
+ if (user == null) return this.RedirectToPage("/login");
+
+ return this.Page();
+ }
+
+ public async Task OnPost()
+ {
+ User? user = this.Database.UserFromWebRequest(this.Request);
+ if (user == null) return this.Redirect("/login");
+
+ user.IsAPirate = !user.IsAPirate;
+ await this.Database.SaveChangesAsync();
+
+ return this.Redirect("/");
+ }
+}
\ No newline at end of file
diff --git a/ProjectLighthouse.Servers.Website/Pages/RegisterForm.cshtml b/ProjectLighthouse.Servers.Website/Pages/RegisterForm.cshtml
index 1a08875b..53a4c151 100644
--- a/ProjectLighthouse.Servers.Website/Pages/RegisterForm.cshtml
+++ b/ProjectLighthouse.Servers.Website/Pages/RegisterForm.cshtml
@@ -1,5 +1,6 @@
@page "/register"
@using LBPUnion.ProjectLighthouse.Configuration
+@using LBPUnion.ProjectLighthouse.Localization.StringLists
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.RegisterForm
@{
@@ -26,12 +27,14 @@
{
}
+@Model.Translate(RegisterStrings.UsernameNotice)
+