updated Home Page paging accessability

This commit is contained in:
Mia Rose Winter 2024-02-21 23:03:51 +01:00
parent 587b073b20
commit 5e2c142f5d
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
3 changed files with 35 additions and 3 deletions

View file

@ -102,9 +102,17 @@
<div class="grid place-content-center my-3">
<div class="join">
<a class="join-item btn" href="/?page=@(Page-1)" disabled="@(Page < 1)">«</a>
<button class="join-item btn">Page @(Page+1)</button>
<a class="join-item btn" href="/?page=@(Page+1)" disabled="@(Page >= TotalPages-1)">»</a>
<a class="join-item btn" href="@(Page < 2 ? "/" : $"/?page={Page - 1}")" disabled="@(Page < 1)" title="@Localizer["Paging_Previous"]">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6">
<path fill-rule="evenodd" d="M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z" clip-rule="evenodd" />
</svg>
</a>
<button aria-ignore="true" class="join-item btn">@Localizer["Paging_Page"] @(Page+1)</button>
<a class="join-item btn" href="/?page=@(Page + 1)" disabled="@(Page >= TotalPages - 1)" title="@Localizer["Paging_Next"]">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6">
<path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z" clip-rule="evenodd" />
</svg>
</a>
</div>
</div>

View file

@ -110,4 +110,16 @@
<data name="NoArticles_Message" xml:space="preserve">
<value>Bald wird diese Seite mit ihren Artikeln gefüllt sein! Melden Sie sich an und verfassen Sie ein paar. (Falls noch nicht geschehen, schauen Sie in Ihrer Serverkonsole nach wie Sie ein Adminkonto erstellen)</value>
</data>
<data name="Articles_Load_Error" xml:space="preserve">
<value>Fehler beim laden von Artikeln</value>
</data>
<data name="Paging_Previous" xml:space="preserve">
<value>Vorherige Seite</value>
</data>
<data name="Paging_Page" xml:space="preserve">
<value>Seite</value>
</data>
<data name="Paging_Next" xml:space="preserve">
<value>Nächste Seite</value>
</data>
</root>

View file

@ -110,4 +110,16 @@
<data name="NoArticles_Message" xml:space="preserve">
<value>Soon this page will be filled with your articles! Log in and write some. (If you haven't yet, check your servers console on how to create an admin account)</value>
</data>
<data name="Articles_Load_Error" xml:space="preserve">
<value>Error loading articles</value>
</data>
<data name="Paging_Previous" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Paging_Page" xml:space="preserve">
<value>Page</value>
</data>
<data name="Paging_Next" xml:space="preserve">
<value>Next page</value>
</data>
</root>