Event date list pagination fix #532

This commit is contained in:
Daniel Grams 2023-08-24 11:41:00 +02:00
parent b6e6b2178a
commit 3d3978a4c7
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@
<script>
var page = 1;
var per_page = 18; // 3*6
var per_page = 50;
var leaflet_map = null;
var map_cluster_group = null;
@ -321,7 +321,7 @@
$('#last_item,#next_item').addClass('disabled');
}
if (data.has_prev || data.has_next) {
if (data.total > 0) {
$('#page_info_text').text("Seite " + data.page + " von " + data.pages + " (" + data.total + " insgesamt)")
$('#page_info').removeClass("d-none");
} else {

View File

@ -1000,15 +1000,15 @@ msgstr ""
#: project/forms/event.py:415
msgid "PublicStatus.published"
msgstr ""
msgstr "Published"
#: project/forms/event.py:416 project/templates/_macros.html:269
msgid "PublicStatus.planned"
msgstr ""
msgstr "Planned"
#: project/forms/event.py:417 project/templates/_macros.html:267
msgid "PublicStatus.draft"
msgstr ""
msgstr "Draft"
#: project/forms/event.py:419 project/templates/event/create.html:386
msgid "Planned events appear in the scheduling view, but not on public calendars."