mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-06-03 14:42:28 +00:00
* Initial work for user settings page * Finish user setting and slot setting pages * Don't show slot upload date on home page and fix team pick redirection * Fix upload image button alignment on mobile * Fix image upload on iPhone * Remove unused css and add selected button color * Fix login email check and bump ChromeDriver to 105 * Remove duplicated code and allow users to leave fields empty * Add unpublish button on level settings and move settings button position * Don't show edit button on mini card * Self review bug fixes and users can no longer use an in-use email
40 lines
No EOL
1.3 KiB
Text
40 lines
No EOL
1.3 KiB
Text
@page "/photos/{pageNumber:int}"
|
|
@using LBPUnion.ProjectLighthouse.Localization.StringLists
|
|
@using LBPUnion.ProjectLighthouse.PlayerData
|
|
@using LBPUnion.ProjectLighthouse.Servers.Website.Extensions
|
|
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.PhotosPage
|
|
|
|
@{
|
|
Layout = "Layouts/BaseLayout";
|
|
Model.Title = Model.Translate(BaseLayoutStrings.HeaderPhotos);
|
|
|
|
string language = Model.GetLanguage();
|
|
string timeZone = Model.GetTimeZone();
|
|
}
|
|
|
|
<p>There are @Model.PhotoCount total photos!</p>
|
|
|
|
<form action="/photos/0">
|
|
<div class="ui icon input">
|
|
<input type="text" autocomplete="off" name="name" placeholder="Search photos..." value="@Model.SearchValue">
|
|
<i class="search icon"></i>
|
|
</div>
|
|
</form>
|
|
<div class="ui divider"></div>
|
|
|
|
@foreach (Photo photo in Model.Photos)
|
|
{
|
|
<div class="ui segment">
|
|
@await photo.ToHtml(Html, ViewData, language, timeZone)
|
|
</div>
|
|
}
|
|
|
|
@if (Model.PageNumber != 0)
|
|
{
|
|
<a href="/photos/@(Model.PageNumber - 1)@(Model.SearchValue?.Length == 0 ? "" : "?name=" + Model.SearchValue)">Previous Page</a>
|
|
}
|
|
@(Model.PageNumber + 1) / @(Model.PageAmount)
|
|
@if (Model.PageNumber < Model.PageAmount - 1)
|
|
{
|
|
<a href="/photos/@(Model.PageNumber + 1)@(Model.SearchValue?.Length == 0 ? "" : "?name=" + Model.SearchValue)">Next Page</a>
|
|
} |