From a7a292a84cff5103e96b4b68ab2761438040827d Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 3 Jan 2023 01:32:00 -0700 Subject: [PATCH] Pagination styling and "max users" signup limit --- core/models/config.py | 1 + static/css/style.css | 8 ++++---- templates/activities/tag.html | 4 ++-- templates/admin/federation.html | 5 ++++- templates/admin/hashtags.html | 5 ++++- templates/admin/identities.html | 5 ++++- templates/admin/invites.html | 5 ++++- templates/admin/reports.html | 5 ++++- templates/admin/users.html | 5 ++++- templates/identity/follows.html | 2 +- templates/identity/view.html | 4 +++- users/views/admin/settings.py | 5 +++++ users/views/auth.py | 12 ++++++++++-- 13 files changed, 50 insertions(+), 16 deletions(-) diff --git a/core/models/config.py b/core/models/config.py index 7dda07b..eb07313 100644 --- a/core/models/config.py +++ b/core/models/config.py @@ -213,6 +213,7 @@ class Config(models.Model): signup_allowed: bool = True signup_text: str = "" + signup_max_users: int = 0 content_warning_text: str = "Content Warning" post_length: int = 500 diff --git a/static/css/style.css b/static/css/style.css index 62b87c9..4077d3b 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1538,15 +1538,15 @@ form .post { .pagination { display: flex; justify-content: center; + align-items: center; gap: 1em; } -.load-more { - margin: 10px 0; - text-align: center; +.pagination .count { + display: inline-block; + color: var(--color-text-dull); } - @media (max-width: 920px), (display-mode: standalone) { div.columns { diff --git a/templates/activities/tag.html b/templates/activities/tag.html index 1a2b5d7..2bb7406 100644 --- a/templates/activities/tag.html +++ b/templates/activities/tag.html @@ -12,11 +12,11 @@ {% endblock %} diff --git a/templates/admin/federation.html b/templates/admin/federation.html index 98ee09d..0f20ada 100644 --- a/templates/admin/federation.html +++ b/templates/admin/federation.html @@ -24,10 +24,13 @@ {% empty %}

There are no federation links yet.

{% endfor %} -
+